CakeDC\Users\Controller\Component\UsersAuthComponent::_attachPermissionChecker PHP Method

_attachPermissionChecker() protected method

Attach the isUrlAuthorized event to allow using the Auth authorize from the UserHelper
protected _attachPermissionChecker ( ) : void
return void
    protected function _attachPermissionChecker()
    {
        $this->_registry->getController()->eventManager()->on(self::EVENT_IS_AUTHORIZED, [], [$this, 'isUrlAuthorized']);
    }