Method | Description | |
---|---|---|
check ( mixed $user, mixed $params, array $options = [] ) : Array | The Simple adapter will just check for user data. |
public check ( mixed $user, mixed $params, array $options = [] ) : Array | ||
$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. |