diff options
author | Ryan Helsing <ryanhelsing@gmail.com> | 2017-03-18 15:22:40 -0400 |
---|---|---|
committer | Ryan Helsing <ryanhelsing@gmail.com> | 2017-03-18 15:22:40 -0400 |
commit | 383daf6f6416e6e3dfe98cf9fcc5528948f35999 (patch) | |
tree | 7603c6f01f0ac18846943e7c9478f1bf512937f1 /models | |
parent | e6276271b1a49bb705ef8777150634c8704bdc9b (diff) | |
download | wekan-383daf6f6416e6e3dfe98cf9fcc5528948f35999.tar.gz wekan-383daf6f6416e6e3dfe98cf9fcc5528948f35999.tar.bz2 wekan-383daf6f6416e6e3dfe98cf9fcc5528948f35999.zip |
cant see add list if comment only
Diffstat (limited to 'models')
-rw-r--r-- | models/users.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/models/users.js b/models/users.js index 06b84fa0..3073e759 100644 --- a/models/users.js +++ b/models/users.js @@ -117,6 +117,11 @@ if (Meteor.isClient) { return board && board.hasMember(this._id); }, + isCommentOnly() { + const board = Boards.findOne(Session.get('currentBoard')); + return board && board.hasCommentOnly(this._id); + }, + isBoardAdmin() { const board = Boards.findOne(Session.get('currentBoard')); return board && board.hasAdmin(this._id); |