dev-master
9999999-dev http://github.com/localitysolutions/cakephp-authorizeCakePHP plugin including a new authorize class for the Acl component.
MIT
The Requires
plugin acl cakephp auth authorize
CakePHP plugin including a new authorize class for the Acl component.
This plugin contains a new authorize class for use with the Acl component., (*1)
When the ActionsAuthorize maps requests to ACO nodes, it only allows for a maximum length of /:plugin/:controller/:action
. The PathAuthorize class included with this plugin will allow you to use ACO nodes that include the record ID. So the path can now look like /:plugin/:controller/:action/:id
. Allowing you to use the ACL to restrict access to individual records., (*2)
[Git], (*3)
In your CakePHP plugin directory, run the following command:, (*4)
git clone https://github.com/localitysolutions/cakephp-authorize.git Authorize
[Composer], (*5)
Add to require
in your composer.json file:, (*6)
{ "require": { "locality/cakephp-authorize": "dev-master" } }
[Manual], (*7)
Standard CakePHP plugin installation, in app/Config/bootstrap.php
insert the line: CakePlugin::load('Authorize');
, (*8)
To use the PathAuthorize class for authorization:, (*9)
//in $components public $components = array( 'Auth' => array( 'authorize' => array( 'Authorize.Path' => array('actionPath' => 'controllers') ) ) ); //Or in beforeFilter() $this->Auth->authorize = array( 'Authorize.Path' => array('actionPath' => 'controllers') );
CakePHP plugin including a new authorize class for the Acl component.
MIT
plugin acl cakephp auth authorize