Tuesday, August 31, 2010

Re: ACL and permissions arent working properly

On 31 Sie, 00:01, Rob <bizarro...@gmail.com> wrote:
> I'm having a problem right now with my application.  I have acl set up
> and I am using groups for all my users following this tutorialhttp://book.cakephp.org/view/1543/Simple-Acl-controlled-Application
>
> One user group I have set up as denied from /controllers using
>
> $this->Acl->deny($group, 'controllers');
>
> and using allow I allowed them to do a few things like add content and
> view their user account, but they still have access to everypage on
> the site.
>

Hi Rob,

Make sure you have commented out $this->Auth->allow(array('*')); in
beforeFilter function
like :

function beforeFilter() {
parent::beforeFilter();
// $this->Auth->allow(array('*'));
}

regards
g0m3$

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: