How have you set up permissions?

You would need a rule for the controller and the action for the
authentication to work.

E.g. rule for controller, then rule for actions under that controller.

Have you tried this instead:

$this->Auth->allowedActions = array('*');

I'm by no means an expert, but it might help narrow down the problem.

On May 22, 5:02 pm, Roman Brunnemann <[email protected]> wrote:
> Hi,
>
> I am using Auth and most of it works fine. But when I want to call a
> page directly as
>
> http://localhost/products/show/
>
> it says ""You are not authorized to access that location.".
>
> So I went in the products controller and made a
>
>    function beforeFilter() {
>
>         $this->Auth->allow('show');
>     }
>
> but it didn't help.
>
> Even a change of the AppController didn't make any difference.
>
> class AppController extends Controller {
>
>     var $component = array('Auth');
>
>     function beforeFilter() {
>
>         $this->Auth->allow('*');  //allow every action of every controller
>     }
>
> }
>
> Do you have any idea why the access is still blocked?
>
> Thanks a lot.
> Roman
--~--~---------~--~----~------------~-------~--~----~
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