Re: Auth / Acl redirect issue CakePHP 1.3.4

2010-11-18 Thread Tonu Tusk
Hi there, I had very similar problems to this... If you split visiting urls into 6 separate cases. 1) not logged in visiting a url by clicking on a link 2) not logged in visiting a url by directly inputting it in browser 3) logged in visiting a url by clicking on a link - access allowed 4)

Re: Auth / Acl redirect issue CakePHP 1.3.4

2010-11-16 Thread danielnolan
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

Re: Auth / Acl redirect issue CakePHP 1.3.4

2010-11-16 Thread Amit Badkas
Hi, Auth component uses 'loginRedirect' (by default, /users/login or /admin/users/login) class property for redirecting non-logged in users to login page if you are on restricted page. Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Wed, Nov 17, 2010 at 12:56 AM,

Auth / Acl redirect issue CakePHP 1.3.4

2010-11-15 Thread danielnolan
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

Re: Auth / Acl redirect issue CakePHP 1.3.4

2010-11-15 Thread Amit Badkas
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,