From 34d7425bfcb28ff62e36fc0bd061ed3e6e2a7b6d Mon Sep 17 00:00:00 2001 From: pieterlukasse Date: Fri, 10 May 2024 20:30:26 +0200 Subject: [PATCH] feat: introduce a new permission instead of relying on a role for Global sharing ...and introduce some other fixes: - fix: correct styling for sharing buttons on access modal ui - fix: cleanup/remove unnecessary parts - fix: adjust permission name to "artifact:global:share:put" to better reflect its real purpose - fix: better name for isPermittedGlobalShareArtifact (previous name isPermittedGlobalShareCohort did not reflect the fact that it is about all kind of artifacts) - fix: move isOwner() check and make sure it is only applied when !config.limitedPermissionManagement - fix: move isOwner() check for conceptset-manager --- .../access/configure-access-modal.html | 5 +- .../cohort-definition-manager.html | 2 +- .../cohort-definition-manager.js | 50 ++++++++----------- js/pages/concept-sets/conceptset-manager.html | 2 +- js/pages/concept-sets/conceptset-manager.js | 48 ++++++++---------- js/services/AuthAPI.js | 29 +++++++---- js/services/ShareRoleCheck.js | 32 ------------ 7 files changed, 64 insertions(+), 104 deletions(-) delete mode 100644 js/services/ShareRoleCheck.js diff --git a/js/components/security/access/configure-access-modal.html b/js/components/security/access/configure-access-modal.html index 672339db7..b437d938f 100644 --- a/js/components/security/access/configure-access-modal.html +++ b/js/components/security/access/configure-access-modal.html @@ -92,15 +92,14 @@
-