Hi, I have a problem with making ACL working, Indeed ARO and ACO
tables are correctly set.

$this->Acl->check(array('model' => 'User', 'foreign_key' => 3),
'Administration')  ---- Return true
$this->Acl->check(array('model' => 'User', 'foreign_key' => 4),
'Administration') ------ Return false

But the user "4" have access to the controller "Administration" that
shouldn't work...

Here is my appController:

        var $uses = array('Category','User','Group');
        var $components = array('RequestHandler', 'Acl','Auth','Url');

        function beforeFilter() {
                $this->Auth->actionPath = 'controllers/';
                $this->Auth->authorize = 'actions';

                $this->Auth->loginAction = array('controller' => 'users', 
'action'
=> 'login','admin'=>false);
                $this->Auth->loginRedirect = array('controller' => 
'administration',
'action' => 'index');
                $this->Auth->logoutRedirect = "/";
        }


Thx for the help

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to