framework
framework copied to clipboard
Command to receive RBAC permissions
Description
It will be useful if you will add command to display roles with assigned rules.
Example
Simplified example:
foreach ($rbac->getRoles() as $role) {
echo \sprintf("%s:\n", $role);
foreach ($rbac->getPermissions($role) as $permissionName => $permissionRule) {
echo \sprintf(
"-- %s: %s\n", $permissionName, $permissionRule
);
}
}
Please take a look at this PR
This PR should be pointing to this monerope. spiral/security is read-only split.
https://github.com/spiral/framework/pull/455