I am not sure that is one hundred percent accurate, if I am logged in
as an admin and i type a restricted URL in the address bar of the
browser I get redirected to the main site home page. If i am not
logged in and I type the same restricted URL in the address bar of the
browser i get redirected to the admin/login page and I get a flash
message saying that I am not authorized to access that location.

So how does the app know to redirect me to the admin/login page when
not logged in, but when logged in I get redirected to the main site
home page?

On Nov 16, 12:08 am, Amit Badkas <[email protected]> wrote:
> Hi,
>
> The redirection after ACL fails depends on HTTP_REFERER environment
> variable. If you access the restricted URL directly then referrer doesn't
> get set, that's why '/' (by default, home page) is being used.
>
> Amit Badkas
>
> PHP Applications for E-Biz:http://www.sanisoft.com
>
> On Mon, Nov 15, 2010 at 10:06 PM, danielnolan <[email protected]>wrote:
>
> > I have an application setup with admin prefix route, Auth, and ACL.
> > everything seems to be working as expected, except when I am logged in
> > as an admin user and I try to access a ACL restriced action by typing
> > the url in the address bar of the browser. I get redirected to the
> > home page of the site (view/pages/home.ctp) instead of the admin
> > dashboard (users/admin_dashboard) i have created.
>
> > If I click on a link to the exact same action in the admin dashboard
> > that is restricted, I get redirected to the admin dashboard as
> > expected with an auth error message telling me I am not authorized to
> > access that location.
>
> > What am I missing?
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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]<cake-php%[email protected]>For
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

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