Fixes config editing

main
Yasen Pramatarov 2024-11-01 19:18:53 +02:00
parent 13ec66548f
commit 43b6547238
1 changed files with 2 additions and 0 deletions

View File

@ -222,6 +222,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
include '../app/templates/config-configfile-edit.php'; include '../app/templates/config-configfile-edit.php';
} else { } else {
if ($userObject->hasRight($user_id, 'view config file')) { if ($userObject->hasRight($user_id, 'view config file')) {
// we need to reload config, it could be edited
$config = require $config_file;
include '../app/templates/config-configfile.php'; include '../app/templates/config-configfile.php';
} else { } else {
include '../app/templates/error-unauthorized.php'; include '../app/templates/error-unauthorized.php';