public isAuthorized ( array | ArrayAccess | null $user = null, Cake\Network\Request $request = null ) : boolean | ||
$user | array | ArrayAccess | null | The user to check the authorization of. If empty the user fetched from storage will be used. |
$request | Cake\Network\Request | The request to authenticate for. If empty, the current request will be used. |
Результат | boolean | True if $user is authorized, otherwise false |