rbac
rbac copied to clipboard
Role based access control
Reasons: - XML is harder to maintain. - Image needs to be regenerated on every update. Files: - https://github.com/yiisoft/rbac/blob/a4f96ac2bb77003d9c04cfb424b05a5138ec5041/tests/Support/hierarchy.graphml - https://github.com/yiisoft/rbac/blob/a4f96ac2bb77003d9c04cfb424b05a5138ec5041/tests/Support/hierarchy.png
I think it would be a good thing to return these methods in manager since they are resolved within the class, which is ideal for creating an rbac service.
For example: 3 rules with 2 "AND" operators and 1 "OR" operator.
After done [PR in Yii Actions](https://github.com/yiisoft/actions/pull/55) that add "matrix exclude" option we can use it and simpilfy GitHub actions here.
Related issue from Yii2: https://github.com/yiisoft/yii2/pull/15777
Currently to check user permissions for several roles we compelled to do something like function canDoSomething(CurrentUser $currentUser) { return $currentUser->can(Role1) || $currentUser->can(Role2) || $currentUser->can(Role3); } It will be great of...