Allows superuser to load settigs page

main
Yasen Pramatarov 2025-05-08 20:07:53 +03:00
parent 65f0758e82
commit 24c844db49
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
* Handles GET requests to display templates.
*/
if ($userObject->hasRight($userId, 'view settings')) {
if ($userObject->hasRight($userId, 'view settings') || $userObject->hasRight($userId, 'superuser')) {
$jilo_agent_types = $agentObject->getAgentTypes();
include '../app/templates/settings.php';
} else {