From 43b65472389595d31b9f62cd1c1c3237013994ec Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Fri, 1 Nov 2024 19:18:53 +0200 Subject: [PATCH] Fixes config editing --- app/pages/config.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/pages/config.php b/app/pages/config.php index 17e4d2c..ce16ea4 100644 --- a/app/pages/config.php +++ b/app/pages/config.php @@ -222,6 +222,8 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { include '../app/templates/config-configfile-edit.php'; } else { 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'; } else { include '../app/templates/error-unauthorized.php';