summaryrefslogtreecommitdiffstats
path: root/client/components/swimlanes
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-07-24 15:01:05 +0300
committerLauri Ojansivu <x@xet7.org>2019-07-24 15:01:05 +0300
commita68c928896a94c377134f29a7183aa0b5a423720 (patch)
treeaabe02c49b7c375cad82f06f68292b56425f4c74 /client/components/swimlanes
parent62bfe1da21149926a12ee50c1ecb91233587e25c (diff)
downloadwekan-a68c928896a94c377134f29a7183aa0b5a423720.tar.gz
wekan-a68c928896a94c377134f29a7183aa0b5a423720.tar.bz2
wekan-a68c928896a94c377134f29a7183aa0b5a423720.zip
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
Diffstat (limited to 'client/components/swimlanes')
-rw-r--r--client/components/swimlanes/swimlanes.jade12
1 files changed, 8 insertions, 4 deletions
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