The data return when access is not permitted will vary by adapter, but it is
ideal to have a "message" and a "redirect" so that a user can be notified
about why they were denied access and so they can be redirected somewhere to,
perhaps, login.
public static check ( string $name, mixed $user, mixed $params, array $options = [] ) : Array | ||
$name | string | The name of the `Access` configuration/adapter to check against. |
$user | mixed | The user data array that holds all necessary information about the user requesting access. Or `false` (because `Auth::check()` can return `false`). |
$params | mixed | The Lithium `Request` object, or an array with at least 'request', and 'params' |
$options | array | An array of additional options. |
return | Array | An empty array if access is allowed and an array with reasons for denial if denied. |