mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 07:12:26 +02:00
(Retrofit from trunk) Bug fix: properly disable the configuration editor in demo mode! (Regression)
SVN:2.3[4311]
This commit is contained in:
@@ -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>");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user