rbac icon indicating copy to clipboard operation
rbac copied to clipboard

Add method `Manager::hasRole(string $name): bool`

Open vjik opened this issue 1 year ago • 2 comments

vjik avatar Feb 27 '24 10:02 vjik

As Roles and Permissions are both Items, and Item names must be unique, I think hasItem() would be a better method name.

beastbytes avatar Mar 02 '25 22:03 beastbytes

As Roles and Permissions are both Items, and Item names must be unique, I think hasItem() would be a better method name.

Using hasItem() method, we will not be able to find out that the existing item is exactly a role.

vjik avatar Mar 03 '25 07:03 vjik