I'm having the same problem.  Did you ever figure this out? :(

On Monday, March 4, 2013 12:35:48 PM UTC-7, incognito wrote:
>
> I followed the tutorial and didn't get any errors but acl is allowing all 
> actions for all users.I checked with aclmanager all permissions are being 
> displayed correctly.I have added parent::beforeFilter(); in all 
> controllers.Am I missing something? Can anybody please help me out with 
> this?
>
> This is my initDB function
>
> public function initDB() {
> $group = $this->User->Group;
>
> $group->id = 1;
> $this->Acl->allow($group, 'controllers');
>
> $group->id = 2;
> $this->Acl->deny($group, 'controllers');
> $this->Acl->allow($group, 'controllers/Employees');
>
>  $group->id = 3;
> $this->Acl->deny($group, 'controllers');//we add an exit to avoid an ugly 
> "missing views" error message
> echo "all done";
>  }
>
> This is my beforefilter function in appcontroller
>
> function beforeFilter(){
> $this->Auth->authorize = array(
>     'Controller',
>     'Actions' => array('actionPath' => 'controllers')
>     );
> $this->Auth->authenticate = array('Form' => array('fields' => 
> array('username' =>'username', 'password' => 'password')));   
>  $this->Auth->loginAction = array('controller' => 'users', 'action' => 
> 'login');
> $this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 
> 'login');
> $this->Auth->loginRedirect = array('controller' => 'employees', 'action' =>   
> 'employee_list');
>  }
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to