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 <danielano...@gmail.com>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 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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>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 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

Reply via email to