Sometimes you need to understand what type of user you have. For this you can put all logic to user entity, but it's place for can. Because we need to understand role and permission for action here
UPD
How to handle cases, when user map to 1+ role? For example, admin user which map to regular and admin role?
What we want
Detect role value for specific scope:
Why
Sometimes you need to understand what type of user you have. For this you can put all logic to user entity, but it's place for can. Because we need to understand role and permission for action here
UPD
How to handle cases, when user map to 1+ role? For example, admin user which map to
regular
andadmin
role?TODO
scope.role
check