I am using Cakephp1.3, i want to deny some functions
Here is my code which is written in users controller
function beforeFilter(){
parent::beforeFilter();
$this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
$this->Auth->authorize = 'controller';
}
function isAuthorized() {
$this->deny('delete');
return true;
}
But i am still able to access delete function .i want to stop access for delete function.
Thanks in advance
and I would put a
pr();statement somewhere inside ofisAuthorized()just to make sure you are at least making it to that function.