From 10a9326e191d937b279d1dfa70463be405681676 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Wed, 27 Jul 2016 09:54:55 +0000 Subject: [PATCH] (Retrofit from trunk) Bug fix: properly disable the configuration editor in demo mode! (Regression) SVN:2.3[4311] --- datamodels/2.x/itop-config/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datamodels/2.x/itop-config/config.php b/datamodels/2.x/itop-config/config.php index 4e04a3c5ac..32953180ea 100644 --- a/datamodels/2.x/itop-config/config.php +++ b/datamodels/2.x/itop-config/config.php @@ -105,7 +105,7 @@ try { $oP->add("
Sorry, iTop is in demonstration mode: the configuration file cannot be edited.
"); } - if (MetaModel::GetModuleSetting('itop-config', 'config_editor', '') == 'disabled') + else if (MetaModel::GetModuleSetting('itop-config', 'config_editor', '') == 'disabled') { $oP->add("
iTop interactive edition of the configuration as been disabled. See 'config_editor' => 'disabled' in the configuration file.
"); }