diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-07-17 03:11:37 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-07-17 03:11:37 +0300 |
commit | fe42eb1d014c06dfed8114a00b29eac9b08baec6 (patch) | |
tree | fe59980cb44dd302fc441c1515bbf5c203190e60 | |
parent | 1e9a481451a559b1f33f633c991c5f7646ee7a09 (diff) | |
download | wekan-fe42eb1d014c06dfed8114a00b29eac9b08baec6.tar.gz wekan-fe42eb1d014c06dfed8114a00b29eac9b08baec6.tar.bz2 wekan-fe42eb1d014c06dfed8114a00b29eac9b08baec6.zip |
Add check for isActive.
Thanks to xet !
-rw-r--r-- | server/authentication.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/authentication.js b/server/authentication.js index 20477bc5..9e519fe1 100644 --- a/server/authentication.js +++ b/server/authentication.js @@ -58,7 +58,7 @@ Meteor.startup(() => { const board = Boards.findOne({ _id: boardId }); const normalAccess = board.permission === 'public' || - board.members.some(e => e.userId === userId); + board.members.some(e => e.userId === userId).isActive; Authentication.checkAdminOrCondition(userId, normalAccess); }; |