Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e040213d7d
Fetching contributors…

Cannot retrieve contributors at this time

file 24 lines (20 sloc) 0.805 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?php

namespace li3_access\extensions\adapter\security\access;

class Simple extends \lithium\core\Object {

/**
* The `Simple` adapter will just check for user data.
* It doesn't care about anything else.
*
* @param mixed $user The user data array that holds all necessary information about
* the user requesting access. Or `false` (because `Auth::check()` can return `false`).
* @param mixed $params The Lithium `Request` object, or an array with at least
* 'request', and 'params'
* @param array $options An array of additional options.
* @return Array An empty array if access is allowed and an array with reasons for denial
* if denied.
*/
public function check($user, $params, array $options = array()) {
return !$user ? $options : array();
}
}

?>
Something went wrong with that request. Please try again.