PHP Class li3_access\extensions\adapter\security\access\Simple

Inheritance: extends lithium\core\Object
Datei anzeigen Open project: tmaiaroto/li3_access

Public Methods

Method Description
check ( mixed $user, mixed $params, array $options = [] ) : Array The Simple adapter will just check for user data.

Method Details

check() public method

It doesn't care about anything else.
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.