I am struck with a weird situation. I have a page which allows a user
(admin) to create a group, set and deny permission to an controller
action for that group. If it is a new group I am able to set and deny
the permissions to certain actions of controller without any issues.
But when it is in edit mode I am not able to remove (deny) the
permissions of already set (allow) permission. For example the
permission which is already set is for the action 'ROOT/groups/
search' . I used the following code to set the action:
$group = & $this->Group;
$group->id = $id;
$this->Acl->allow ( $group, ''ROOT/groups/search' );
In edit I tried following code to remove the action for 'ROOT/groups/
search'.
$group = & $this->Group;
$group->id = $id;
$this->Acl->deny ( $group, ''ROOT/groups/search' );
But it did not work. This is same for the reverse type, that is to
allow permission to already permission denied action. Could anyone
help me out from this situation? Thanks
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment