Hi,

I have a problem with this.

Using Auth with Acl and action authoroization.

If fails beacause Auth pass the entire user model data to the  
AclComponent->check() method instead of an simple array with model and  
foreign_key keys.

Could this be a misconfiguaration of the Auth Component in the  
AppController?

$this->Auth->userModel = 'Usuario';
$this->Auth->fields = array(
        'username' => 'usuario',
        'password' => 'clave');
$this->Auth->loginAction = array(
        Configure::read('Routing.admin') => false,
        'controller' => 'usuarios',
        'action' => 'login');
$this->Auth->loginRedirect = array(
        'controller' => 'pages',
        'action' => 'entrada');
$this->Auth->logoutRedirect = array(
        'controller' => 'pages',
        'action' => 'salida');
$this->Auth->loginError = __('Error de login', true);
$this->Auth->autoRedirect = false;
$this->Auth->authorize = 'actions';
$this->Auth->actionPath = 'actions/';


--
Fran Iglesias
[EMAIL PROTECTED]





--~--~---------~--~----~------------~-------~--~----~
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