Acl\Auth\ActionsAuthorize::authorize PHP Method

authorize() public method

Authorize a user using the AclComponent.
public authorize ( array $user, Cake\Network\Request $request ) : boolean
$user array The user to authorize
$request Cake\Network\Request The request needing authorization.
return boolean
    public function authorize($user, Request $request)
    {
        $Acl = $this->_registry->load('Acl');
        $user = [$this->_config['userModel'] => $user];
        return $Acl->check($user, $this->action($request));
    }
ActionsAuthorize