Removing isAuthorized() as there is no need for it once AuthComponent is updated.

This commit is contained in:
mark_story 2011-01-02 13:21:21 -05:00
parent 1c827573ce
commit 693360bc9e
2 changed files with 1 additions and 14 deletions

View file

@ -30,6 +30,7 @@
*
* @package cake.libs.controller.components.auth
* @since 2.0
* @see AuthComponent::$authenticate
*/
class FormAuthenticate {

View file

@ -756,20 +756,6 @@ class Controller extends Object {
return call_user_func_array(array(&$this, $action), $args);
}
/**
* Controller callback to tie into Auth component.
* Only called when AuthComponent::$authorize is set to 'controller'.
*
* @return bool true if authorized, false otherwise
* @link http://book.cakephp.org/view/1275/authorize
*/
public function isAuthorized() {
trigger_error(sprintf(
__('%sController::isAuthorized() is not defined.'), $this->name
), E_USER_WARNING);
return false;
}
/**
* Returns number of errors in a submitted FORM.
*