From 12dbd0ed3da279e49ae4858055ebc05180c913d8 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 29 Jun 2023 09:58:52 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06482=20-=20Fix=20URP=5FUserProfile=20cla?= =?UTF-8?q?sses=20not=20flagged=20as=20link=20classes=20so=20they=20can=20?= =?UTF-8?q?benefit=20of=20the=20same=20mechanisms=20(eg.=20events)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/userrights/userrightsprofile.class.inc.php | 1 + addons/userrights/userrightsprofile.db.class.inc.php | 1 + addons/userrights/userrightsprojection.class.inc.php | 1 + core/datamodel.core.xml | 1 + 4 files changed, 4 insertions(+) diff --git a/addons/userrights/userrightsprofile.class.inc.php b/addons/userrights/userrightsprofile.class.inc.php index 610cb9183..6370e5fe3 100644 --- a/addons/userrights/userrightsprofile.class.inc.php +++ b/addons/userrights/userrightsprofile.class.inc.php @@ -228,6 +228,7 @@ class URP_UserProfile extends UserRightsBaseClassGUI "db_table" => "priv_urp_userprofile", "db_key_field" => "id", "db_finalclass_field" => "", + "is_link" => true, /** @since 3.1.0 N°6482 */ 'uniqueness_rules' => array( 'no_duplicate' => array( 'attributes' => array( diff --git a/addons/userrights/userrightsprofile.db.class.inc.php b/addons/userrights/userrightsprofile.db.class.inc.php index 8b02989f4..12a8874c9 100644 --- a/addons/userrights/userrightsprofile.db.class.inc.php +++ b/addons/userrights/userrightsprofile.db.class.inc.php @@ -334,6 +334,7 @@ class URP_UserProfile extends UserRightsBaseClassGUI "db_table" => "priv_urp_userprofile", "db_key_field" => "id", "db_finalclass_field" => "", + "is_link" => true, /** @since 3.1.0 N°6482 */ ); MetaModel::Init_Params($aParams); //MetaModel::Init_InheritAttributes(); diff --git a/addons/userrights/userrightsprojection.class.inc.php b/addons/userrights/userrightsprojection.class.inc.php index 7a9642218..50413fabc 100644 --- a/addons/userrights/userrightsprojection.class.inc.php +++ b/addons/userrights/userrightsprojection.class.inc.php @@ -277,6 +277,7 @@ class URP_UserProfile extends UserRightsBaseClass "db_table" => "priv_urp_userprofile", "db_key_field" => "id", "db_finalclass_field" => "", + "is_link" => true, /** @since 3.1.0 N°6482 */ ); MetaModel::Init_Params($aParams); //MetaModel::Init_InheritAttributes(); diff --git a/core/datamodel.core.xml b/core/datamodel.core.xml index 0a98b4da6..e5a1e74de 100644 --- a/core/datamodel.core.xml +++ b/core/datamodel.core.xml @@ -58,6 +58,7 @@ cmdbAbstractObject addon/userrights,grant_by_profile + 1