From 3826c1f88669277137feb2def10a68beaa48b412 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Fri, 13 May 2011 16:00:21 +0000 Subject: [PATCH] #405 Could not install without the module 'User Request Management' SVN:trunk[1269] --- modules/itop-profiles-itil/module.itop-profiles-itil.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/itop-profiles-itil/module.itop-profiles-itil.php b/modules/itop-profiles-itil/module.itop-profiles-itil.php index 03f4409a3..51c3feb31 100644 --- a/modules/itop-profiles-itil/module.itop-profiles-itil.php +++ b/modules/itop-profiles-itil/module.itop-profiles-itil.php @@ -200,6 +200,10 @@ class CreateITILProfilesInstaller extends ModuleInstallerAPI */ public static function DoCreateUserPortalProfile() { + // Do not attempt to create this profile if the module 'User Request Management' is not installed + // Note: ideally, the creation of this profile should be moved to the 'User Request Management' module + if (!MetaModel::IsValidClass('UserRequest')) return; + $iNewId = URP_Profiles::DoCreateProfile(PORTAL_PROFILE_NAME, 'Has the rights to access to the user portal. People having this profile will not be allowed to access the standard application, they will be automatically redirected to the user portal.', true /* reserved name */); // Grant read rights for everything