Download the PHP package fmcorz/acl-manager without Composer
On this page you can find all versions of the php package fmcorz/acl-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fmcorz/acl-manager
More information about fmcorz/acl-manager
Files in fmcorz/acl-manager
Package acl-manager
Short Description AclManager for CakePHP 2.x
License MIT
Homepage http://github.com/FMCorz/AclManager
Informations about the package acl-manager
AclManager for CakePHP 2.x
This plugins allows you to easily manage your permissions in CakePHP 2.x through the Acl module.
Features
- Managing permissions for each node
- Updating Database with missing AROs (Users, Roles, ...)
- Updating Database with missing ACOs (Controller actions)
- Revoking all permissions
Requirements
- CakePHP 2.x
How to install
1. Set up your Acl environment
- Install SQL tables through Cake Console
- parentNode() method on your requester models
See: CakePHP: Simple ACL Controlled Application
2. Configure Auth in your AppController
It should look something like this:
3. Download AclManager
Manually
Download the stable branch (https://github.com/FMCorz/AclManager/archive/stable.zip) and paste the content in your app/Plugin/
directory.
With Composer
- Install composer in the
app/
folder of your project. - Add
"fmcorz/acl-manager": "stable"
to yourrequire
key in yourcomposer.json
file. (More about this) - Run
php composer.phar install
to install the plugin.
4. Configure the plugin
See AclManager/Config/bootstrap.php
AclManager.aros : write in there your requester models aliases (the order is important)
5. Enable the plugin
In app/Config/bootstrap.php
CakePlugin::load('AclManager', array('bootstrap' => true));
6. Login with an existing user
The plugin conflicts with $this->Auth->allow()
, do not use it. Just make sure that you are logged in.
7. Access the plugin at /acl_manager/acl
- Update your AROs and ACOs
- Set up your permissions (do not forget to enable your own public actions!)
8. Disable the authorizer Controller
Or uncomment return false
in AppController::isAuthorized()
9. You're done!
Enjoy!
Licence
Licensed under the MIT License