post your app_controller  and routes.php to the bin

On Wed, May 14, 2008 at 10:03 AM, David Christopher Zentgraf
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I ran into this situation:
> I'm using the Auth and Acl components to lock down my system.
> Really limited accounts basically have no right besides viewing and
> editing their own profile page.
> I disabled autoforwarding in the Auth component and set up some
> customized redirects:
>
> a) if the user is not logged in and tries to access anything, Auth
> component sends him to /users/login
> e.g. /users/list -> /users/login
>
> b) if the user is logged in and tries to access something he's not
> allowed to, Auth sends him to /users/login which then sends him to his
> own profile page, a "safe" place the user definitely has access to.
> e.g. /users/list -> /users/login -> /users/profile/username
>
> The problem is when I try to access the root directory, simply /.
> Cake tries to forward the user to the root over and over in circles.
>
> $ curl -I -b cookie=<asdf...> http://localhost/myroot/
> HTTP/1.1 301 Moved Permanently
> Location: http://localhost/myroot/
>
> I set up routes.php with this:
> Router::connect('/', array('controller' => 'users', 'action' =>
> 'index'));
>
> Users with sufficient privileges get to see the index page, limited
> accounts are being re-routed in circles.
> If I try to access /users/ or /users/index directly it works great,
> the user is redirected to his own profile page.
>
> Any ideas...?
>
> Chrs,
> Dav
>
> >
>



-- 
Marcin Domanski
http://kabturek.info

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