Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Apr 25, 2015
1 parent fe94c3f commit 745d0e1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Auth/TinyAuthorize.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
}

/**
* Probably the most simple and fastest Acl out there.
* Only one config file `acl.ini` necessary
* Doesn't even need a Role Model / roles table
* Uses most persistent _cake_core_ cache by default
* Probably the most simple and fastest ACL out there.
* Only one config file `acl.ini` necessary,
* doesn't even need a Roles Table / roles table.
* Uses most persistent _cake_core_ cache by default.
* @link http://www.dereuromark.de/2011/12/18/tinyauth-the-fastest-and-easiest-authorization-for-cake2
*
* Usage:
* Include it in your beforeFilter() method of the AppController
* $this->Auth->authorize = array('Tools.Tiny');
* Include it in your beforeFilter() method of the AppController with the following config:
* 'authorize' => ['Tools.Tiny']
*
* Or with admin prefix protection only
* $this->Auth->authorize = array('Tools.Tiny' => array('allowUser' => true));
* 'authorize' => ['Tools.Tiny' => ['allowUser' => true]];
*
* @author Mark Scherer
* @license MIT
Expand Down

0 comments on commit 745d0e1

Please sign in to comment.