CakePHP 3.x Acl Manager
Acl Manager For CakePHP 3.x, (*1)
Installation
Composer
You can install this plugin into your CakePHP application using composer., (*2)
The recommended way to install composer packages is:, (*3)
composer require montreux-oberland-bernois/cakephp3-aclmanager
Getting started
- Install the CakePHP ACL plugin by running composer require cakephp/acl. Read Acl plugin documentation.
- Include the Acl and AclManager plugins in app/config/bootstrap.php
Plugin::load('Acl', ['bootstrap' => true]);
Plugin::load('AclManager', ['bootstrap' => true, 'routes' => true]);
Creating ACL tables
To create ACL related tables, run the following Migrations command:, (*4)
bin/cake migrations migrate -p Acl
Usage
Now navigate to admin/AclManager/Acl, update your acos and your aros or just click Restore to default., (*5)
For specified user or group managing, you can pass one or multiple id in params (ex. admin/AclManager/acl/Permissions/Users?id=2, 42)., (*6)
This plugin is adapted for AdminLTE Template., (*7)
Todo
- Ajax Update children when change permissions
About CakePHP 3.x AclManager
CakePHP 3.x - Acl Manager was inspired by the plugin of Jean-Christophe Pires (JcPires) and Iván Amat., (*8)
Licensed
MIT License, (*9)