Friday, December 31, 2010

Re: Urgent, help: Setting up permission to allow aro to access aco (problem)

Hi I don't understand this:

cake acl grant john /controllers/posts/edit *

Now I am giving John all permission for edit node ??

All permission for edit node ??? or just the right to edit ?

Also, when I host my App later, how am I going to run a cake
console ??? ???

Is it after changing the permission locally, using the console, it
would be changed permanently in the associated files? so we don't need
to run it unless we need to update permission ?


regards,
Maxim

On Dec 31, 3:39 pm, John Maxim <goog...@gmail.com> wrote:
> Hi I'm stuck right here:http://book.cakephp.org/view/1550/Setting-up-permissions
>
> I don't know how to set the permission right, can anyone point this
> out?
>
> Is it either we can do one way or both ?
>
> (1)
> grant <aronode> <aconode> [<aco_action>] or all
>         Use this command to grant ACL permissions. Once executed, the
> ARO
>         specified (and its children, if any) will have ALLOW access to
> the
>         specified ACO action (and the ACO's children, if any).
>         For more detailed parameter usage info,
>         see help for the 'create' command.
>
> (2)
> this line of code is it placed in app_controller.php ?
>
> $this->Acl->allow($aroAlias, $acoAlias);
>
> ~~
>
> I don't know at all how to run permission with shell. It gave error
> like:
>
> c:\wamp\www\app>cake acl grant $aroAlias $acoAlias all
>
> PHP Warning:  DbAcl::allow() - Invalid node in C:\wamp\www\cake\libs
> \controller\components\acl.php on line 361
>
> Warning: DbAcl::allow() - Invalid node in C:\wamp\www\cake\libs
> \controller\components\acl.php on line 361
> Permission was not granted.
>
> Any help with this?
> ~
> Regards, thanks.
> Maxim

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: