From a68c928896a94c377134f29a7183aa0b5a423720 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Wed, 24 Jul 2019 15:01:05 +0300 Subject: Prevent isCommentOnly user adding attachments, editing list names, moving lists, and seeing board settings menu. Show non-editable Custom Fields to isCommentOnly user. Thanks to xet7 ! Closes wekan/wekan-snap#97, closes #2416, closes #2255 --- client/components/swimlanes/swimlanes.jade | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'client/components/swimlanes/swimlanes.jade') diff --git a/client/components/swimlanes/swimlanes.jade b/client/components/swimlanes/swimlanes.jade index c56834df..485b2ffc 100644 --- a/client/components/swimlanes/swimlanes.jade +++ b/client/components/swimlanes/swimlanes.jade @@ -9,14 +9,16 @@ template(name="swimlane") each lists +miniList(this) if currentUser.isBoardMember - +addListForm + unless currentUser.isCommentOnly + +addListForm else each lists +list(this) if currentCardIsInThisList _id ../_id +cardDetails(currentCard) if currentUser.isBoardMember - +addListForm + unless currentUser.isCommentOnly + +addListForm template(name="listsGroup") .swimlane.list-group.js-lists @@ -27,14 +29,16 @@ template(name="listsGroup") each lists +miniList(this) if currentUser.isBoardMember - +addListForm + unless currentUser.isCommentOnly + +addListForm else each lists +list(this) if currentCardIsInThisList _id null +cardDetails(currentCard) if currentUser.isBoardMember - +addListForm + unless currentUser.isCommentOnly + +addListForm template(name="addListForm") .list.list-composer.js-list-composer -- cgit v1.2.3-1-g7c22