Thursday, March 26, 2009

Auth Deny doesn't work with CamelCased action name!

Hi guys,

basically AuthComponent is not denying actions that are CamelCased!
(for me anyway)

function beforeFilter() {
parent::beforeFilter();
$this->Auth->autoRedirect = false;

//$this->Auth->allow('index','view');
$this->Auth->deny('getState');

}

when i go to action 'getState' nothing is denied.

if i have a one word simple action like 'state' , or 'index', or
'delete' then the action is denied!


any solutions other than making all my actions single words?
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: