The expected outcome would be false but it returns true because in Acl::getRuleType() null is returned when the assertion is returning anything else than true.
A simple fix would be returning the assertion value if it is not null but I think I am missing some point here or this is something that is simply overlooked in the design.
If I did miss something please advice how to implement my assertions because I have assertions that are dedicated to a specific resourceId + roleId + privilege combination and I don't want to assign this whole combination to the assertion and let it check if this assertion is really meant for that call..
For example, staff can manage acl roles for users except for 2 users. This is not possible now since the inherited value which allows this behavior when it is actually denied.
Just to be clear, if an assertion exists and is returning otherwise than null stop searching and return that value instead of the parent resource's value.
This issue has been moved from the
zendframework
repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.htmlOriginal Issue: https://api.github.com/repos/zendframework/zendframework/issues/7385 User: @BWorld Created On: 2015-03-30T20:37:41Z Updated At: 2015-11-06T21:03:17Z Body Hi,
I have the following setup:
http://pastebin.com/ZGsH8M1F
The expected outcome would be false but it returns true because in Acl::getRuleType() null is returned when the assertion is returning anything else than true.
A simple fix would be returning the assertion value if it is not null but I think I am missing some point here or this is something that is simply overlooked in the design.
If I did miss something please advice how to implement my assertions because I have assertions that are dedicated to a specific resourceId + roleId + privilege combination and I don't want to assign this whole combination to the assertion and let it check if this assertion is really meant for that call..
For example, staff can manage acl roles for users except for 2 users. This is not possible now since the inherited value which allows this behavior when it is actually denied.
Just to be clear, if an assertion exists and is returning otherwise than null stop searching and return that value instead of the parent resource's value.
Thanks