Fixes config editing
parent
13ec66548f
commit
43b6547238
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue