I am mostly familiar with the AclComponent, so I don't know if this is
applicable. In the component, the $action parameter is only fully
utilized if you are using the 'crud' mode of the AuthComponent.
If you are using the 'actions' mode of the AuthComponent, then the
$action parameter is not used, or at least is just an asterisk. With
the 'actions' mode, which is what most tutorials are using, you end up
with acos that have aliases such as 'News/index', 'News/view/23',
'News/edit/23', 'News/delete/23'. Because the aco uses an alias that
already has the 'action' component as part of itself, then the crud
elements of the permission table are not utilized.
On Jan 1, 1:44 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I have question about ACL ini. We can check permissions by a code:
>
> $this->Acl->check( $aro, $aco, $action );
>
> But what about third parameter ('action')? Where we can add
> information about $action in our acl.ini.php file?
>
> We have there, by example:
>
> [admin]
> allow = Admin
>
> And if I want that my 'admin' can only read an 'Admin' ACO, where
> should I add information about it? Or maybe I can't do it and the only
> way to do that is using an ACL Database?
>
> Greetings ;-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---