I think it is not right to be redirected to the referer page and
display the error message on the referer page. This is not what I
would expect when I try to access a certan page.
At first I wanted to be redirected to the login page, because I though
it is the right behavior to give the user the c
it seems to be the correct behavior:
- if you're not logged in, it redirectts you to login page
- if you're logged, it checks if you're allowed to access to
controller:
* if yes, ok
* if not, it redirects you back and tell you "access denied"
Why do you want to be redirected to login since you
Braindead - I'm wondering the same thing. Right now, as you said, it
just redirects you to the current page. Perhaps an enhancement ticket
at trac?
On Jan 29, 12:51 pm, Braindead <[EMAIL PROTECTED]> wrote:
> That's what I already did. When I'm not logged in and want to enter an
> access controll
That's what I already did. When I'm not logged in and want to enter an
access controlled controller, I'm redirected to $loginAction.
But how is it possible to be redirected to $loginAction, when I'm
already logged in, but not allowed to access a controller?
--~--~-~--~~~---
Maybe the Auth $loginAction property is what you're looking for. Set the url
of the controller that handles login (As a string or array).
Cheers,
--
Matias Lespiau
http://www.gignus.com/
On Jan 29, 2008 4:10 PM, Braindead <[EMAIL PROTECTED]> wrote:
>
> Hello group,
>
> I'm using Auth and ACL
Hello group,
I'm using Auth and ACL in Cake 1.2. It took quite a long time to get
it to work, but now everything is working, except one thing:
When I'm logged in and try to access a controller I don't have access
to, I'm redirected to the url I came from and get the message that I'm
not allowed