mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Removing isAuthorized() as there is no need for it once AuthComponent is updated.
This commit is contained in:
parent
1c827573ce
commit
693360bc9e
2 changed files with 1 additions and 14 deletions
|
@ -30,6 +30,7 @@
|
|||
*
|
||||
* @package cake.libs.controller.components.auth
|
||||
* @since 2.0
|
||||
* @see AuthComponent::$authenticate
|
||||
*/
|
||||
class FormAuthenticate {
|
||||
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue