diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-01-05 21:28:14 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2020-01-05 21:28:14 +0200 |
commit | f6f7705f23ea18d7f1b8f8736b762eb89e00a3cf (patch) | |
tree | d1213a62330b38c1a293f39a8b5265deefff0535 /client/components/cards/checklists.js | |
parent | 6209b792aa9548ba66691fcaa0033ec9c29a3c7c (diff) | |
download | wekan-f6f7705f23ea18d7f1b8f8736b762eb89e00a3cf.tar.gz wekan-f6f7705f23ea18d7f1b8f8736b762eb89e00a3cf.tar.bz2 wekan-f6f7705f23ea18d7f1b8f8736b762eb89e00a3cf.zip |
Add Worker role.
This was originally added at Wekan v3.58,
reverted at Wekan v3.60 because of bugs,
and now after fixes added back.
Thanks to xet7 !
Closes #2788
Diffstat (limited to 'client/components/cards/checklists.js')
-rw-r--r-- | client/components/cards/checklists.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/client/components/cards/checklists.js b/client/components/cards/checklists.js index 57939eb8..27d1b1c9 100644 --- a/client/components/cards/checklists.js +++ b/client/components/cards/checklists.js @@ -67,7 +67,8 @@ BlazeComponent.extendComponent({ return ( Meteor.user() && Meteor.user().isBoardMember() && - !Meteor.user().isCommentOnly() + !Meteor.user().isCommentOnly() && + !Meteor.user().isWorker() ); }, }).register('checklistDetail'); @@ -120,7 +121,8 @@ BlazeComponent.extendComponent({ return ( Meteor.user() && Meteor.user().isBoardMember() && - !Meteor.user().isCommentOnly() + !Meteor.user().isCommentOnly() && + !Meteor.user().isWorker() ); }, @@ -228,7 +230,8 @@ Template.checklistItemDetail.helpers({ return ( Meteor.user() && Meteor.user().isBoardMember() && - !Meteor.user().isCommentOnly() + !Meteor.user().isCommentOnly() && + !Meteor.user().isWorker() ); }, }); |