Im using ACL and Auth with:
$this->Auth->authorize = 'actions';
My roles are:
Guests
--Contributors
----Managers
------Administrators
Is possible to ask for $this->Acl->check in a view?
In a allowed index view Im displaying 3 buttons, how do i display only
1 view to Contributors, Two to Managers and all to Administrators???
In my controller im playing with:
if ($this->Acl->check(array('model' => 'Role', 'foreign_key' => $this-
>user['User']['role_id']), 'listings', 'edit')){
print 'Success';
}
http://book.cakephp.org/view/471/checking-permissions-the-acl-c
Now im very confuse, how do i check access of a especific action
against a role?
Note that im using the actions authorize type.
Thnkas in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---