Default Access Control Listener

 Methods

Determines whether a page should be accepted by ACL when iterating

accept(\Zend\EventManager\Event $event) : bool

  • If helper has no ACL, page is accepted
  • If page has a resource or privilege defined, page is accepted if the ACL allows access to it using the helper's role
  • If page has no resource or privilege, page is accepted
  • If helper has ACL and role:
    • Page is accepted if it has no resource or privilege.
    • Page is accepted if ACL allows page's resource or privilege.

Parameters

Returns

bool