I've done the following:
$aro= new Aro();
$aco= new Aco();
//aro groups
$aro->create(0,null,'Super');
$aro->create(0,null,'Administrator');
$aro->create(0,null,'AddOnly');
$aro->create(0,null,'ReadOnly');
$aro->setparent('Super','root');
//aco groups
$aco->create(0,null,'user management');
$aco->create(0,null,'protected area management');
$aco->create(0,null,'protected area data entry');
$aco->create(0,null,'protected area list');
//an aro
$aro->create(1, null, 'root');
//acos
$aco->create(1,null,'/users/edit');
$aco->create(2,null,'/users/add');
$aco->create(3,null,'/users/delete');
$aco->create(4,null,'/users/view');
$aco->create(5,null,'/users/index');
$aco->create(6,null,'/users/managegroups');
$aco->create(7,null,'/users/manageusers');
$aco->create(8,null,'/protectedareas/edit');
$aco->create(9,null,'/protectedareas/add');
$aco->create(10,null,'/protectedareas/view');
$aco->create(11,null,'/protectedareas/index');
$aco->setparent('protected area management', '/protectedareas/
edit');
$aco->setparent('protected area data entry',
'/protectedareas/add');
$aco->setparent('protected area management', '/protectedareas/
view');
$aco->setparent('protected area list', '/protectedareas/index');
$aco->setparent('user management','/users/add');
$aco->setparent('user management', 'users/edit');
$aco->setparent('user management', 'users/delete');
$aco->setparent('user management', 'users/view');
$aco->setparent('user management', 'users/index');
$aco->setparent('user management', 'users/managegroups');
$aco->setparent('user management', 'users/manageusers');
Access Control/
$this->Acl->allow('Super','user management');
$this->Acl->allow('Super','protected area management');
$this->Acl->allow('Super','protected area data entry');
$this->Acl->allow('Super','protected area list');
$this->Acl->allow('Administrator','protected area management');
$this->Acl->allow('Administrator','protected area data entry');
$this->Acl->allow('Administrator','protected area list');
$this->Acl->allow('AddOnly','protected area data entry');
$this->Acl->allow('AddOnly','protected area list');
$this->Acl->allow('ReadOnly','protected area list');
The problem is that, root is allowed to visit the /users/add page but
not /users/edit page even if they belong to the same aco group. Why is
this? Please find the problem and tell me what it is...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---