Explorar o código

Bug fix: properly disable the configuration editor in demo mode! (Regression)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4310 a333f486-631f-4898-b8df-5754b55c2be0
dflaven %!s(int64=8) %!d(string=hai) anos
pai
achega
23272d6df5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      datamodels/2.x/itop-config/config.php

+ 1 - 1
datamodels/2.x/itop-config/config.php

@@ -105,7 +105,7 @@ try
 	{
 	{
 		$oP->add("<div class=\"header_message message_info\">Sorry, iTop is in <b>demonstration mode</b>: the configuration file cannot be edited.</div>");
 		$oP->add("<div class=\"header_message message_info\">Sorry, iTop is in <b>demonstration mode</b>: the configuration file cannot be edited.</div>");
 	}
 	}
-	if (MetaModel::GetModuleSetting('itop-config', 'config_editor', '') == 'disabled')
+	else if (MetaModel::GetModuleSetting('itop-config', 'config_editor', '') == 'disabled')
 	{
 	{
 		$oP->add("<div class=\"header_message message_info\">iTop interactive edition of the configuration as been disabled. See <tt>'config_editor' => 'disabled'</tt> in the configuration file.</div>");
 		$oP->add("<div class=\"header_message message_info\">iTop interactive edition of the configuration as been disabled. See <tt>'config_editor' => 'disabled'</tt> in the configuration file.</div>");
 	}
 	}