summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-07-17 03:11:37 +0300
committerLauri Ojansivu <x@xet7.org>2019-07-17 03:11:37 +0300
commitfe42eb1d014c06dfed8114a00b29eac9b08baec6 (patch)
treefe59980cb44dd302fc441c1515bbf5c203190e60 /server
parent1e9a481451a559b1f33f633c991c5f7646ee7a09 (diff)
downloadwekan-fe42eb1d014c06dfed8114a00b29eac9b08baec6.tar.gz
wekan-fe42eb1d014c06dfed8114a00b29eac9b08baec6.tar.bz2
wekan-fe42eb1d014c06dfed8114a00b29eac9b08baec6.zip
Add check for isActive.
Thanks to xet !
Diffstat (limited to 'server')
-rw-r--r--server/authentication.js2
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);
};