From 6bf557251095aedde95be2c4eb74bf7af51acbfb Mon Sep 17 00:00:00 2001 From: Nikhil P Bonte Date: Fri, 1 Dec 2023 12:03:25 +0530 Subject: [PATCH] Fix linking asset with Product create permission --- .../policy_cache_transformer_persona.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/addons/static/templates/policy_cache_transformer_persona.json b/addons/static/templates/policy_cache_transformer_persona.json index ad4be520552..7ffd3ae8828 100644 --- a/addons/static/templates/policy_cache_transformer_persona.json +++ b/addons/static/templates/policy_cache_transformer_persona.json @@ -551,6 +551,25 @@ "end-two-entity-type:DataProduct", "end-two-entity-classification:*" ], + "actions": ["add-relationship", "update-relationship", "remove-relationship"] + }, + { + "policyResourceCategory": "RELATIONSHIP", + "policyType": "ACCESS", + "description": "Link/unlink any Asset to this DataProduct", + + "resources": [ + "relationship-type:*", + + "end-one-entity-type:Asset", + "end-one-entity-classification:*", + "end-one-entity:*", + + "end-two-entity-type:DataProduct", + "end-two-entity-classification:*", + "end-two-entity:{entity}/*product/*" + ], + "actions": ["add-relationship", "update-relationship", "remove-relationship"] } ],