Closed ezimuel closed 6 years ago
@webimpress thanks for the review! I updated the PR with your suggestions. Moreover, I updated the documentation with the API of the 2 functions.
@weierophinney can you merge this? Thanks!
Thanks @ezimuel - merged to develop!
This PR adds 2 functions:
Role::getPermissions($children = true)
, retrieve all the permissions of a role, included the children permission if$children
is true;Rbac::getRoles()
, returns all the roles as array ofRoleInterface
;These functions are useful for getting the permissions and roles of a Rbac scheme.