From 8ca6610e75e6b6ed14900ac00a050087dc1603ba Mon Sep 17 00:00:00 2001 From: Guillaume Lajarige Date: Fri, 25 Aug 2017 13:10:31 +0000 Subject: [PATCH] =?UTF-8?q?N=C2=B0858.2=20Fixed=20regression=20introduced?= =?UTF-8?q?=20in=20r4716=20making=20DataSynchro=20menu=20hidden=20from=20t?= =?UTF-8?q?he=20Admin=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:trunk[4879] --- datamodels/2.x/itop-welcome-itil/main.itop-welcome-itil.php | 1 + synchro/synchrodatasource.class.inc.php | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/datamodels/2.x/itop-welcome-itil/main.itop-welcome-itil.php b/datamodels/2.x/itop-welcome-itil/main.itop-welcome-itil.php index d0ddfbb5c..388458157 100755 --- a/datamodels/2.x/itop-welcome-itil/main.itop-welcome-itil.php +++ b/datamodels/2.x/itop-welcome-itil/main.itop-welcome-itil.php @@ -57,6 +57,7 @@ class ItopWelcome extends ModuleHandlerAPI new WebPageMenuNode('ExportMenu', utils::GetAbsoluteUrlAppRoot().'webservices/export-v2.php?interactive=1', $oAdminMenu->GetIndex(), 9 /* fRank */); new WebPageMenuNode('DataModelMenu', utils::GetAbsoluteUrlAppRoot().'pages/schema.php', $oAdminMenu->GetIndex(), 10 /* fRank */); new WebPageMenuNode('UniversalSearchMenu', utils::GetAbsoluteUrlAppRoot().'pages/UniversalSearch.php', $oAdminMenu->GetIndex(), 11 /* fRank */); + new OQLMenuNode('DataSources', 'SELECT SynchroDataSource', $oAdminMenu->GetIndex(), 12 /* fRank */, true); } } } diff --git a/synchro/synchrodatasource.class.inc.php b/synchro/synchrodatasource.class.inc.php index 2866aea06..f89cb8fa9 100644 --- a/synchro/synchrodatasource.class.inc.php +++ b/synchro/synchrodatasource.class.inc.php @@ -2919,9 +2919,3 @@ class SynchroExecution return false; } } - -if (UserRights::IsAdministrator()) -{ - $oAdminMenu = new MenuGroup('AdminTools', 80 /* fRank */); - new OQLMenuNode('DataSources', 'SELECT SynchroDataSource', $oAdminMenu->GetIndex(), 12 /* fRank */, true); -} \ No newline at end of file