cakephp-3-acl-example icon indicating copy to clipboard operation
cakephp-3-acl-example copied to clipboard

Grant Administrator permission to all Admin prefixed controllers

Open Sbudah opened this issue 7 years ago • 1 comments

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?

Sbudah avatar Apr 11 '17 15:04 Sbudah

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

matibaski avatar Jul 05 '17 11:07 matibaski