cakephp-3-acl-example
cakephp-3-acl-example copied to clipboard
Grant Administrator permission to all Admin prefixed controllers
My Administrator user group ID is 5. I have tried:
bin/cake acl grant Groups.5 controllers bin/cake acl grant Groups.5 controllers/Admin
Nothing works.
Any advice?
Same problem, same question. How can I add Admin
routing to the ACL?
My routing:
Router::prefix('admin', function ($routes) {
$routes->connect('/', ['controller' => 'Users', 'action' => 'index']);
$routes->extensions(['json', 'xml']);
// All routes here will be prefixed with `/admin`
// And have the prefix => admin route element added.
$routes->fallbacks('DashedRoute');
});
Baking my admin files with:
bin/cake bake controller --prefix admin users
bin/cake bake template --prefix admin users