Add some permission code, to see does it fix something.

Thanks to xet7 !

Related #3377
This commit is contained in:
Lauri Ojansivu 2020-12-17 21:27:02 +02:00
parent 8481c791d7
commit 7f3c4acf62
8 changed files with 117 additions and 50 deletions

View file

@ -3,6 +3,10 @@ BlazeComponent.extendComponent({
this.subscribe('archivedBoards');
},
isBoardAdmin() {
return Meteor.user().isBoardAdmin();
},
archivedBoards() {
return Boards.find(
{ archived: true },