Remove deny if not admin

This commit is contained in:
Haja 2024-12-19 10:49:50 +03:00
parent a9e5a3441b
commit 8af37ef996

View File

@ -56,7 +56,7 @@ class PageController extends Controller {
$this->urlGenerator = $urlGenerator;
$this->mailer = $mailer;
$this->config = $config;
$this->fpdf = $fpdf;
//$this->fpdf = $fpdf;
if ($userSession->isLoggedIn()) {
$this->user = $userSession->getUser();
@ -288,11 +288,13 @@ class PageController extends Controller {
}
protected function denyIfNotAdmin() {
/*
if(empty($this->groups) || !in_array("admin", $this->groups)) {
http_response_code(403);
echo "Forbidden: You need administrative privileges.";
exit;
}
*/
}
/**