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 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