Utils of canModifyCard and canModifyBoard + move this general functions to Utils class

This commit is contained in:
Martin Filser 2022-01-11 19:26:59 +01:00
parent b29ec93c34
commit 583f114c68
10 changed files with 28 additions and 135 deletions

View file

@ -158,13 +158,6 @@ BlazeComponent.extendComponent({
}).register('boardHeaderBar');
Template.boardHeaderBar.helpers({
canModifyBoard() {
return (
Meteor.user() &&
Meteor.user().isBoardMember() &&
!Meteor.user().isCommentOnly()
);
},
boardView() {
return Utils.boardView();
},