engine/http/RequestHandler: make beforeDispatch() method protected

This commit is contained in:
E. S. 2025-04-28 15:39:34 +03:00
parent d18ce884a3
commit 0aa77194c3
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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();
}