[ask] Auth error when integrate with ACL in CakePHP 1.2.1.8004

2009-02-10 Thread yodi

Hello everybody,

for a weeks, i struggle learning about ACL. Then, i have something weird
in my app. I'm using $this-Auth-authorize = 'crud'; in my
app_controller.php.

Every i'm trying to logout, this is happend :

Auth::startup() - Attempted access of un-mapped action logout in
controller users [CORE/cake/libs/controller/components/auth.php, line
471]

But, when i add $this-Auth-actionMap['logout'] = 'read'; 
in my app_controller, everything works!

It's weird when Auth logout must set in actionMap.

can help me? 


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Auth error when integrate with ACL in CakePHP 1.2.1.8004

2009-02-10 Thread Gwoo

Actually you should probably use Auth-allow('logout') in your users
controller.
Also, if you want to add to the actionMap then use Auth::mapActions();
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Auth error when integrate with ACL in CakePHP 1.2.1.8004

2009-02-10 Thread yodi

Thanks, Gwoo, it works fine right now!

On Tue, 2009-02-10 at 08:46 -0800, Gwoo wrote:
 Actually you should probably use Auth-allow('logout') in your users
 controller.
 Also, if you want to add to the actionMap then use Auth::mapActions();
  


--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---