-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Child roles not added #3
Comments
@jmaybury I've checked the issue and I think it is a valid one. I mean I am not sure if it is going to be added back to v3 or not, but if not - the change is not documented.
Before I would ping here the author of the change - @ezimuel, so maybe he can explain if it was desired change for v3, or not. Originally posted by @michalbundyra at zendframework/zend-permissions-rbac#45 (comment) |
Jus to link PR: #46 Originally posted by @michalbundyra at zendframework/zend-permissions-rbac#45 (comment) |
@webimpress I agree this is a bug. The #46 it doesn't fix the issue in my opinion. We need to fix this is Originally posted by @ezimuel at zendframework/zend-permissions-rbac#45 (comment) |
@webimpress, @jmaybury Just send the PR #48 to fix this issue. Originally posted by @ezimuel at zendframework/zend-permissions-rbac#45 (comment) |
So, where is the fix commit? |
Closes issue laminas#3. Original fix by @ezimuel Signed-off-by: Gennadiy Litvinyuk <[email protected]>
In v3.x, if you create a role, add a child role too it, then add the parent role to the Rbac instance, the child role is not added. Using your own example code:
This displays "doesn't work". Similarly, attempting a permission check against role "bar" raises a "No role with name 'bar' could be found" exception.
This worked in 2.x
Originally posted by @jmaybury at zendframework/zend-permissions-rbac#45
The text was updated successfully, but these errors were encountered: