Re: PLease help, 3 days struggle with 'simple' authentication

2008-09-24 Thread Gabriel Kolbe
ta On Wed, Sep 24, 2008 at 1:17 PM, RichardAtHome <[EMAIL PROTECTED]> wrote: > >> $this->Auth->deny('admin', 'accnt', 'faq'); // does not work > > This doesn't work because the 'action' for all views in the pages > controller is 'display' not 'admin', 'accnt' > > $this->Auth->deny("display")

Re: PLease help, 3 days struggle with 'simple' authentication

2008-09-24 Thread RichardAtHome
> $this->Auth->deny('admin', 'accnt', 'faq'); // does not work This doesn't work because the 'action' for all views in the pages controller is 'display' not 'admin', 'accnt' $this->Auth->deny("display") would work, but it would deny ALL views handled by the pages controller. Your workaround

Re: PLease help, 3 days struggle with 'simple' authentication

2008-09-24 Thread Gabriel Kolbe
S'ok, I created 'fake' functions in the user controller, then added the views to the users views, then take the Authentication process from the app_controller to the users_controller.. On Wed, Sep 24, 2008 at 10:54 AM, gabriel <[EMAIL PROTECTED]> wrote: > > This is my current code: > class AppCon

PLease help, 3 days struggle with 'simple' authentication

2008-09-24 Thread gabriel
This is my current code: class AppController extends Controller { var $components = array('Auth'); function beforeFilter() { $this->Auth->authorize = 'controller'; $this->Auth->allow('*'); $this->Auth->deny('admin', 'accnt', 'faq'); // does not work } function isAuth