From 0e43a5561b5c9cd7bb627cb1b44274f2ff72b1f6 Mon Sep 17 00:00:00 2001 From: nztqa Date: Fri, 29 Sep 2017 15:02:35 +0900 Subject: [PATCH 1/2] Add check to see if permission --- client/components/cards/labels.jade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/components/cards/labels.jade b/client/components/cards/labels.jade index 31bd4d067..6c6efb08c 100644 --- a/client/components/cards/labels.jade +++ b/client/components/cards/labels.jade @@ -34,4 +34,5 @@ template(name="cardLabelsPopup") = name if(isLabelSelected ../_id) i.card-label-selectable-icon.fa.fa-check - a.quiet-button.full.js-add-label {{_ 'label-create'}} + if currentUser.isBoardAdmin + a.quiet-button.full.js-add-label {{_ 'label-create'}} From 51fd053119133cb4c76efc13b769e864b1c6817a Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 1 Oct 2017 09:55:33 +0300 Subject: [PATCH 2/2] Hide create label from normal users, because only board admin can create labels. Thanks to nztqa ! Related #1229 --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29ae3e9e6..8c6266102 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ This release adds the following new features: and fixes the following bugs: -* [Data inconsistency when copying card](https://github.com/wekan/wekan/pull/1246). Note: There is no feature for copying card attachment yet. +* [Data inconsistency when copying card](https://github.com/wekan/wekan/pull/1246). Note: There is no feature for copying card attachment yet; +* [Hide create label from normal users, because only board admin can create labels](https://github.com/wekan/wekan/pull/1261). Thanks to Github user nztqa for contributions.