Re: requestAction and Auth issues

2013-06-25 Thread hdogan
You can allow unauthorized access to action if your action is requested with requestAction method. For example: public function beforeFilter() { parent::beforeFilter(); if ($this->request->is('requested') && $this->request->params['action'] == 'index') { $this->Auth->allow(arra

Re: requestAction and Auth issues

2013-06-22 Thread euromark
You should also post the code where you allow this action. Am Freitag, 21. Juni 2013 20:41:22 UTC+2 schrieb Eric Haskins: > > Yes it is an element > > On Friday, June 21, 2013 2:23:34 PM UTC-4, euromark wrote: >> >> where do you run this statement? >> in the view ctp? >> >> >> Am Freitag, 21. Jun

Re: requestAction and Auth issues

2013-06-21 Thread Eric Haskins
Yes it is an element On Friday, June 21, 2013 2:23:34 PM UTC-4, euromark wrote: > > where do you run this statement? > in the view ctp? > > > Am Freitag, 21. Juni 2013 18:31:07 UTC+2 schrieb Eric Haskins: >> >> Hey All, >> >> I am running cakePhp latest and I just ran into an issue with >>

Re: requestAction and Auth issues

2013-06-21 Thread euromark
where do you run this statement? in the view ctp? Am Freitag, 21. Juni 2013 18:31:07 UTC+2 schrieb Eric Haskins: > > Hey All, > > I am running cakePhp latest and I just ran into an issue with > requestAction and my auth. It seems like even though I allow index action > in my NewsControl

requestAction and Auth issues

2013-06-21 Thread Eric Haskins
Hey All, I am running cakePhp latest and I just ran into an issue with requestAction and my auth. It seems like even though I allow index action in my NewsController $latest_news = $this -> requestAction(array('controller' => 'news','action' => 'index'),array('named'=>array('limit'=>1