Friday, December 31, 2010

Re: How to use Grant in Shell ?

Hi,

Try the command by replacing $aroAlias (this should be any record's value in aros table for alias field) and $acoAlias (this should be any record's value in acos table for alias field) with their proper values.

Hope this helps.

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Fri, Dec 31, 2010 at 12:42 PM, John Maxim <googol6@gmail.com> wrote:
I don't know. Do you mean the table's data ?

I'm following the tutorial here

http://book.cakephp.org/view/1550/Setting-up-permissions

it says to allow permission for aro and aco tables..

how to enable the permission ?

rgrds,
maxim
On Dec 31, 2:32 pm, Amit Badkas <amit.sanis...@gmail.com> wrote:
> Hi,
>
> What are the actual values of $aroAlias and $acoAlias variables?
>
> Amit Badkas
>
> PHP Applications for E-Biz:http://www.sanisoft.com
>
> On Fri, Dec 31, 2010 at 11:47 AM, John Maxim <goog...@gmail.com> wrote:
> > I have tried:
>
> > >cake acl grant $aroAlias $acoAlias
> > ---
> > Error: Wrong number of parameters
> > Got: 2
> > Expected: 3
> > Please type `cake acl help` for help
> > on usage of the AclShell grant.
>
> > ---
>
> > >cake acl grant $aroAlias $acoAlias all
> > --
> > PHP Warning:  DbAcl::allow() - Invalid node in C:\wamp\www\cakephp\cake
> > \libs\controller\components\acl.php on line 361
>
> > Warning: DbAcl::allow() - Invalid node in C:\wamp\www\cakephp\cake\libs
> > \controller\components\acl.php on line 361
> > Permission was not granted.
>
> > --
>
> > I think the problem is I just saw it. My cake console core path is at:
>
> > www/cakephp
>
> > How can I change to /www
>
> > ?
>
> > My work and app path is both at /www
>
> > Or is there something wrong with my grant command line ?
>
> > Regards,
> > Maxim
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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<cake-php%2Bunsubscribe@googlegroups.com>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

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

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: