Hi Anja,

> I get kicked out of some actions in some controllers. I have alread
> placed
> function beforeFilter()
>     {
>         parent::beforeFilter();
>                 $this->Auth->authError = sprintf(__('You are not
> authorized to access that location %s .',true),$this->name);
>     }
>
> Which gives me at least the controller name.
> How can i get the name of the action which I am not authorized to see?
> Is there a possibility to get it shown on page?
>
> Mind: I have about 700 actions so something which I haven't to add to
> each action would be ideal.

$this->action should do the trick.

--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~---------~--~----~------------~-------~--~----~
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