Original Issue: https://api.github.com/repos/zendframework/zendframework/issues/7614
User: @ceadreak
Created On: 2015-08-12T16:57:55Z
Updated At: 2015-11-06T22:14:04Z
Body
I have an issue in an application to hide parts of menu if acl resource is not allowed for a role.
I defined a member role with a resource platform.ticketing and a privilege access.
Acl is defined such as below :
$this->allow('member', 'platform.ticketing', 'access', new HasTicketing());
HasTicketing is a simple asserter returning true if member can access or false if not.
If I remove asserter, everything works fine but the menu appears ...
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/7614 User: @ceadreak Created On: 2015-08-12T16:57:55Z Updated At: 2015-11-06T22:14:04Z Body I have an issue in an application to hide parts of menu if acl resource is not allowed for a role. I defined a
member
role with a resourceplatform.ticketing
and a privilegeaccess
.Acl is defined such as below :
HasTicketing
is a simple asserter returningtrue
if member can access orfalse
if not.If I remove asserter, everything works fine but the menu appears ...
On my navigation config :
On navigation partial :
In the Xdebug trace, resource and privilege are OK, but $accept = false. Acl works great for pages otherwise ...
Any idea for this issue ? Tks