From 01a9f1098ad86be7ec3bbb8f28dae85edca8075b Mon Sep 17 00:00:00 2001 From: "Petter H. Juliussen" Date: Fri, 17 Nov 2023 15:40:16 +0100 Subject: [PATCH] Fix permission check for key result value admin --- CHANGELOG.md | 2 + src/components/KeyResultValuesList.vue | 13 ++++--- src/components/ObjectiveDetailsCard.vue | 11 +----- src/components/panes/KeyResultPane.vue | 12 ++---- src/store/index.js | 49 ++++++++++++++++--------- 5 files changed, 45 insertions(+), 42 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c51323517..4556b3d33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,8 @@ All notable changes to this project will be documented in this file. The format measurement detail pages. - Product result indicators and key figures are now correctly included as part of parent measurements when switching between items. +- The edit button for key result values is now only visible to users with the + appropriate permissions. ### Security diff --git a/src/components/KeyResultValuesList.vue b/src/components/KeyResultValuesList.vue index 2299a5051..e66f5d7d9 100644 --- a/src/components/KeyResultValuesList.vue +++ b/src/components/KeyResultValuesList.vue @@ -22,11 +22,11 @@ -

+

{{ record.comment }}