The Rules adapter will use check to test the provided data
against a number of given rules. Extra data that may be required
to make an informed decision about access can be passed in the
$options array. This extra data will vary from app to app and rules
will need to be added to handle it. The default rules assume some
general cases and more can be added or passed directly to this method.
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. |