Re: Auth problem with '/' and You are not authorized to access that location.

2009-06-28 Thread mike karthauser
On 27 Jun 2009, at 23:11, tpynegar tpyne...@hotmail.com wrote: Hi, I've got a setup where i've got a login action at /users/login. If you go directly to that controller, action there is no error message wereas if you goto '/' as in the site address with no controller or action and then

Auth problem with '/' and You are not authorized to access that location.

2009-06-27 Thread tpynegar
Hi, I've got a setup where i've got a login action at /users/login. If you go directly to that controller, action there is no error message wereas if you goto '/' as in the site address with no controller or action and then follow the routes i've got setup for '/' to /users/login you get this

Re: Auth problem with '/' and You are not authorized to access that location.

2009-06-27 Thread jitka (poLK)
Url '/' points by default routes to PagesController::display(), so you should call either a) in PagesController::beforeFilter(): parent::beforeFilter(); $this-Auth-allow('display'); or b) in AppController::beforeFilter(): if ($this-name == 'Pages') {