mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
debug isBoardAdmin on main page
This commit is contained in:
parent
a68ecc079d
commit
35ae07e2a6
3 changed files with 7 additions and 3 deletions
|
|
@ -39,7 +39,7 @@ template(name="boardList")
|
|||
i.fa.js-archive-board(
|
||||
class="fa-archive"
|
||||
title="{{_ 'archive-board'}}")
|
||||
else if currentUser.isBoardAdmin
|
||||
else if isAdministrable
|
||||
i.fa.js-clone-board(
|
||||
class="fa-clone"
|
||||
title="{{_ 'duplicate-board'}}")
|
||||
|
|
|
|||
|
|
@ -42,6 +42,10 @@ BlazeComponent.extendComponent({
|
|||
const user = Meteor.user();
|
||||
return user && user.hasStarred(this.currentData()._id);
|
||||
},
|
||||
isAdministrable() {
|
||||
const user = Meteor.user();
|
||||
return user && user.isBoardAdmin(this.currentData()._id);
|
||||
},
|
||||
|
||||
hasOvertimeCards() {
|
||||
subManager.subscribe('board', this.currentData()._id, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue