From 97c8e1f7a96df21915fa985c195823aa064a3866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Espi=C3=A9?= Date: Mon, 11 Jun 2018 10:02:20 +0000 Subject: [PATCH] =?UTF-8?q?N=C2=B0=201436=20-=20Allowed=20orgs=20on=20User?= =?UTF-8?q?s=20not=20managed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:trunk[5850] --- core/userrights.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/userrights.class.inc.php b/core/userrights.class.inc.php index f7c445367..3a7e4ee2c 100644 --- a/core/userrights.class.inc.php +++ b/core/userrights.class.inc.php @@ -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); }