I have Autho and ACL setup correctly - I believe.  No issues with
logging in etc.  My problem is the permissions.  When I assign
permissions my aros_acos table is populated with the proper info but I
tried something a bit different and dont know which route to take.

When I run this:

$this->Acl->allow($group, 'controllers/Infos', 'read');
$this->Acl->allow($group, 'controllers/Infos', 'create');
$this->Acl->allow($group, 'controllers/Infos', 'update');

I get an aros_acos row with the proper data but for the parent
controller "Infos" with create, read, update with 1s and delete with a
0, instead of getting a row for each method in the controller.

I see lots of people assigning permissions like so:

$this->Acl->allow($group, 'controllers/Items/index');
$this->Acl->allow($group, 'controllers/Items/view');
$this->Acl->allow($group, 'controllers/Items/add');
$this->Acl->allow($group, 'controllers/Items/edit');

The only issue I have with the above is that unless I assign allow
permissions to the controller as a whole:
$this->Acl->allow($group, 'controllers/Items');

None of the permissions will work, I get locked out, even though there
is a row in the aros_acos table for each method I am allowing
permissions too.

Anyone have any thoughts on this?  I'm brutally lost...

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to