diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-04-13 17:48:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 17:48:16 +0300 |
commit | b841f798f8b0eb540c0f51ea294ee44576a21111 (patch) | |
tree | 044cfdc75a9e2512e113a186de6a8f79bf273449 /client/components/boards/boardsList.js | |
parent | a68ecc079d13170a646c502977069233f14f0be1 (diff) | |
parent | 35ae07e2a65c5ab5ba6784cdb67631918a41ccc3 (diff) | |
download | wekan-b841f798f8b0eb540c0f51ea294ee44576a21111.tar.gz wekan-b841f798f8b0eb540c0f51ea294ee44576a21111.tar.bz2 wekan-b841f798f8b0eb540c0f51ea294ee44576a21111.zip |
Merge pull request #3013 from salleman33/master
debug isBoardAdmin on main page
Diffstat (limited to 'client/components/boards/boardsList.js')
-rw-r--r-- | client/components/boards/boardsList.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js index 0ff1c4fb..65bed16a 100644 --- a/client/components/boards/boardsList.js +++ b/client/components/boards/boardsList.js @@ -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); |