framework icon indicating copy to clipboard operation
framework copied to clipboard

Command to receive RBAC permissions

Open Eugentis opened this issue 5 years ago • 3 comments

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
        );
    }
}

Eugentis avatar Dec 17 '20 13:12 Eugentis

Please take a look at this PR

Eugentis avatar Sep 19 '21 06:09 Eugentis

This PR should be pointing to this monerope. spiral/security is read-only split.

wolfy-j avatar Sep 19 '21 10:09 wolfy-j

https://github.com/spiral/framework/pull/455

Eugentis avatar Sep 21 '21 11:09 Eugentis