Thursday, December 30, 2010

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

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: