N° 1436 - Allowed orgs on Users not managed

SVN:trunk[5850]
This commit is contained in:
Eric Espié
2018-06-11 10:02:20 +00:00
parent 2afc6d1c62
commit 97c8e1f7a9

View File

@@ -975,8 +975,8 @@ class UserRights
try
{
// Check only bizmodel to let API work like in 2.4.1
if (MetaModel::HasCategory($sClass, 'bizmodel'))
// In case of pb, use AllowAllData internally
if (MetaModel::HasCategory($sClass, 'bizmodel') || MetaModel::HasCategory($sClass, 'grant_by_profile'))
{
return self::$m_oAddOn->GetSelectFilter(self::$m_oUser, $sClass, $aSettings);
}