Sorry for my English.

I'm doing an access control system using Auth and Acl components.

In AppController:
$this->Auth->loginAction = array ('controller' => 'users', 'action' =>
'login');
$this->Auth->logoutRedirect = array ('controller' => 'users', 'action'
=> 'login');
$this->Auth->loginRedirect = array ('controller' => 'posts', 'action'
=> 'index');

I understand that with this, when a user tries to access an "action"
protected, is sent to "login". But if a user is already logged in and
try to access an "action" for which no permits. How can I redirect to
the action that I want?.

In my example, a user has permissions to the "controller" "Posts" but
not "Users". When trying to access "Users" is sent "home". Another
user has permissions only to "read" the controller "Posts". When
trying to access from "index" to "add" simply nothing happens.

Thank you very much

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