qobo / cakephp-roles-capabilities
Roles and Capabilities plugin for CakePHP
Installs: 54 985
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 17
Forks: 1
Open Issues: 1
Type:cakephp-plugin
Requires
- qobo/cakephp-groups: ^12.0
- qobo/cakephp-utils: ^13.0
Requires (Dev)
- qobo/cakephp-composer-dev: ^v1.0
- dev-master
- v18.6.5
- v18.6.4
- v18.6.3
- v18.6.2
- v18.6.1
- v18.6.0
- v18.5.3
- v18.5.2
- v18.5.1
- v18.5.0
- v18.4.1
- v18.4.0
- v18.3.1
- v18.3.0
- v18.2.0
- v18.1.3
- v18.1.2
- v18.1.1
- v18.1.0
- v18.0.1
- v18.0.0
- v17.0.1
- v17.0.0
- v16.4.1
- 16.4.0
- v16.3.1
- v16.3.0
- v16.2.1
- v16.2.0
- v16.1.0
- v16.0.0
- v15.0.1
- v15.0.0
- v14.2.6
- v14.2.5
- v14.2.4
- v14.2.3
- v14.2.2
- v14.2.1
- v14.2.0
- v14.1.2
- v14.1.1
- v14.1.0
- v14.0.1
- v14.0.0
- v13.1.1
- v13.1.0
- v13.0.4
- v13.0.3
- v13.0.2
- v13.0.1
- v13.0.0
- v12.0.1
- v12.0.0
- v11.3.1
- v11.3.0
- v11.2.1
- v11.2.0
- v11.1.2
- v11.1.1
- v11.1.0
- v11.0.0
- v10.0.6
- v10.0.5
- v10.0.4
- v10.0.3
- v10.0.2
- v10.0.1
- v10.0.0
- v9.0.4
- v9.0.3
- v9.0.2
- v9.0.1
- v9.0.0
- v8.1.1
- v8.1.0
- v8.0.0
- v7.0.3
- v7.0.2
- v7.0.1
- v7.0.0
- v6.0.2
- v6.0.1
- v6.0.0
- v5.1.0
- v5.0.0
- v4.0.0
- v3.10.1
- v3.10.0
- v3.9.1
- v3.9.0
- v3.8.1
- v3.8.0
- v3.7.0
- v3.6.0
- v3.5.0
- v3.4.0
- v3.3.0
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.1
- v3.0.0
- v2.2.0
- v2.1.0
- v2.0.0
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-task-20644-parent-joins-fix
- dev-dependabot/add-v2-config-file
- dev-task-19516-cannot-see-checkboxes-while-editing-role-capabilities
- dev-task-4194-simplify-capabilities
- dev-composer-update
- dev-QOBRIX-288-fix-supervisor-loop
- dev-roles-table-defaults
- dev-task-17453-permissions-one-to-many
- dev-cakephp-v38
- dev-crud-capabilities-task-4194
This package is auto-updated.
Last update: 2023-04-29 00:33:26 UTC
README
About
CakePHP 3+ plugin managing user roles and capabilities.
This plugin is developed by Qobo for Qobrix. It can be used as standalone CakePHP plugin, or as part of the project-template-cakephp installation.
Installation
You can install this plugin into your CakePHP application using composer.
This plugin works along with Qobo Groups plugin.
The recommended way to install composer packages is:
composer require qobo/cakephp-roles-capabilities
Run plugin's migration task:
bin/cake migrations migrate -p RolesCapabilities
Run required plugin(s) migration task:
bin/cake migrations migrate -p Groups
Setup
Load plugin
bin/cake plugin load --routes --bootstrap RolesCapabilities
Load required plugin(s)
bin/cake plugin load Muffin/Trash
bin/cake plugin load --routes --bootstrap CakeDC/Users
Load the Capability component in your src/Controller/AppController.php file using the initialize()
method. Additionally use the CapabilityTrait in AppController. See details below:
use RolesCapabilities\CapabilityTrait;
class AppController extends Controller
{
use CapabilityTrait;
public function initialize()
{
parent::initialize();
$this->loadComponent('Flash');
$this->loadComponent('RolesCapabilities.Capability', [
'currentRequest' => $this->request->params
]);
}