8000 Add method `Manager::hasRole(string $name): bool` · Issue #257 · yiisoft/rbac · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add method Manager::hasRole(string $name): bool #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vjik opened this issue Feb 27, 2024 · 2 comments
Open

Add method Manager::hasRole(string $name): bool #257

vjik opened this issue Feb 27, 2024 · 2 comments
Assignees
Labels
type:enhancement Enhancement
Milestone

Comments

@vjik
Copy link
Member
vjik commented Feb 27, 2024

No description provided.

@vjik vjik added this to the 3.0 milestone Feb 27, 2024
@samdark samdark added the type:enhancement Enhancement label Feb 27, 2024
@arogachev arogachev self-assigned this Feb 27, 2024
@beastbytes
Copy link

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

@vjik
Copy link
Member Author
vjik commented Mar 3, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

4 participants
0