Composer Update

This commit is contained in:
2022-06-14 16:55:53 +02:00
parent d8605597f6
commit 6bbf517196
9 changed files with 211 additions and 339 deletions

View File

@@ -18,6 +18,7 @@ class InfoBody extends SimpleBody {
$user = $this->getDocument()->getUser();
if ($user->isLoggedIn() && $user->hasGroup(USER_GROUP_ADMIN)) {
phpinfo();
return "";
} else {
$message = "You are not logged in or do not have the proper privileges to access this page.";
return $this->getDocument()->getRouter()->returnStatusCode(403, [ "message" => $message] );