Remove deny if not admin
This commit is contained in:
parent
a9e5a3441b
commit
8af37ef996
@ -56,7 +56,7 @@ class PageController extends Controller {
|
|||||||
$this->urlGenerator = $urlGenerator;
|
$this->urlGenerator = $urlGenerator;
|
||||||
$this->mailer = $mailer;
|
$this->mailer = $mailer;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
$this->fpdf = $fpdf;
|
//$this->fpdf = $fpdf;
|
||||||
|
|
||||||
if ($userSession->isLoggedIn()) {
|
if ($userSession->isLoggedIn()) {
|
||||||
$this->user = $userSession->getUser();
|
$this->user = $userSession->getUser();
|
||||||
@ -288,11 +288,13 @@ class PageController extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function denyIfNotAdmin() {
|
protected function denyIfNotAdmin() {
|
||||||
|
/*
|
||||||
if(empty($this->groups) || !in_array("admin", $this->groups)) {
|
if(empty($this->groups) || !in_array("admin", $this->groups)) {
|
||||||
http_response_code(403);
|
http_response_code(403);
|
||||||
echo "Forbidden: You need administrative privileges.";
|
echo "Forbidden: You need administrative privileges.";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user