#405 Could not install without the module 'User Request Management'

SVN:trunk[1269]
This commit is contained in:
Romain Quetiez
2011-05-13 16:00:21 +00:00
parent 58844b04ef
commit 3826c1f886

View File

@@ -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