engine/http/RequestHandler: make beforeDispatch() method protected
This commit is contained in:
parent
d18ce884a3
commit
0aa77194c3
@ -120,7 +120,7 @@ abstract class RequestHandler
|
||||
}
|
||||
}
|
||||
|
||||
public function beforeDispatch(string $http_method, string $action) {}
|
||||
protected function beforeDispatch(string $http_method, string $action) {}
|
||||
|
||||
public function callAct(string $http_method, string $action, array $input = []) {
|
||||
$handler_method = $_SERVER['REQUEST_METHOD'].'_'.$action;
|
||||
|
@ -24,7 +24,7 @@ class AdminHandler
|
||||
$this->skin->options->insideAdminInterface = true;
|
||||
}
|
||||
|
||||
public function beforeDispatch(string $http_method, string $action) {
|
||||
protected function beforeDispatch(string $http_method, string $action) {
|
||||
if ($action != 'login' && !isAdmin())
|
||||
throw new Forbidden();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user