On Fri, Mar 1, 2013 at 2:52 PM, di <dimitildemondlane@yahoo.com> wrote:
>
> public function beforeFilter() {
> $this->Auth->allow('*');
In 2.x it should be $this->Auth->allow(); It's not clear to me whether
you're using 1.3.x or 2.x.
Try:
if (!isset($this->request->params['requested']) &&
isset($this->request->params['admin']) &&
$this->request->params['admin'] == 1)
The first test ensures that calls to requestAction don't mess things up.
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Sunday, March 17, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment