diff --git a/addons/userrights/userrightsprofile.class.inc.php b/addons/userrights/userrightsprofile.class.inc.php index 386876c24..339298243 100644 --- a/addons/userrights/userrightsprofile.class.inc.php +++ b/addons/userrights/userrightsprofile.class.inc.php @@ -137,11 +137,8 @@ class URP_Profiles extends UserRightsBaseClassGUI $oUserRights = UserRights::GetModuleInstance(); $aDisplayData = array(); - foreach (MetaModel::GetClasses('bizmodel') as $sClass) + foreach (MetaModel::GetClasses('bizmodel,grant_by_profile') as $sClass) { - // Skip non instantiable classes - if (MetaModel::IsAbstract($sClass)) continue; - $aStimuli = array(); foreach (MetaModel::EnumStimuli($sClass) as $sStimulusCode => $oStimulus) { @@ -183,7 +180,7 @@ class URP_Profiles extends UserRightsBaseClassGUI if (!$bEditMode) { $oPage->SetCurrentTab(Dict::S('UI:UserManagement:GrantMatrix')); - $this->DoShowGrantSumary($oPage); + $this->DoShowGrantSumary($oPage); } } diff --git a/core/userrights.class.inc.php b/core/userrights.class.inc.php index c46bb898c..ad92e362a 100644 --- a/core/userrights.class.inc.php +++ b/core/userrights.class.inc.php @@ -370,8 +370,8 @@ abstract class User extends cmdbAbstractObject if (!$bEditMode) { $oPage->SetCurrentTab(Dict::S('UI:UserManagement:GrantMatrix')); - $this->DoShowGrantSumary($oPage, 'bizmodel'); - + $this->DoShowGrantSumary($oPage, 'bizmodel,grant_by_profile'); + // debug if (false) {