Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor QA.

  • Loading branch information...
commit e040213d7d478e5c376abc7c0ea844b50e9c1c6e 1 parent cfd76de
@Ciaro Ciaro authored
View
2  README.md
@@ -5,7 +5,7 @@
Checkout the code to either of your library directories:
cd libraries
- git clone https://github.com/rich97/li3_access.git
+ git clone https://github.com/tmaiaroto/li3_access.git
Include the library in in your `/app/config/bootstrap/libraries.php`
View
4 extensions/adapter/security/access/AuthRbac.php
@@ -20,7 +20,7 @@ class AuthRbac extends \lithium\core\Object {
protected $_roles = null;
/**
- * The `Rbac` adapter will iterate trough the rbac data Array.
+ * The `Rbac` adapter will iterate through the rbac data Array.
*
* @todo: write better tests!
*
@@ -189,7 +189,7 @@ protected static function _parseClosures(array &$data, $request, array &$roleOpt
* @param mixed $params The Lithium `Request` object, or an array with at least
* 'request', and 'params'
* @param array $options
- * @return array|mixed $roles Roles with attachted User Models
+ * @return array|mixed $roles Roles with attached User Models
*/
protected static function _getRolesByAuth($params, array $options = array()) {
$roles = array('*' => '*');
View
5 extensions/adapter/security/access/Simple.php
@@ -2,11 +2,6 @@
namespace li3_access\extensions\adapter\security\access;
-/* uncomment it if needed
-use lithium\core\Libraries;
-use lithium\util\Set;
-*/
-
class Simple extends \lithium\core\Object {
/**
View
5 security/Access.php
@@ -72,9 +72,8 @@ protected static function _initConfig($name, $config) {
* perhaps, login.
*
* @param string $name The name of the `Access` configuration/adapter to check against.
- * @param object $request A Lithium Request object.
- * @param mixed $resource The user data that holds all necessary information about
- * the user requesting access. Or `false` (because Auth::check() can return `false`).
+ * @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.
Please sign in to comment.
Something went wrong with that request. Please try again.