summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-12-20 16:10:26 +0200
committerLauri Ojansivu <x@xet7.org>2019-12-20 16:10:26 +0200
commitafe7d4991d09192d416cc1f82c85e5febe22487e (patch)
treef5cab56a793f3332581b0c4071ad30912fd8a6b6 /server
parent2dafde8db9ddbc397e5906aa34cc479c36bf7b3a (diff)
parent0649add494d31f51378cf40a0416825accc55a8f (diff)
downloadwekan-afe7d4991d09192d416cc1f82c85e5febe22487e.tar.gz
wekan-afe7d4991d09192d416cc1f82c85e5febe22487e.tar.bz2
wekan-afe7d4991d09192d416cc1f82c85e5febe22487e.zip
Merge branch 'Robert-Lebedeu-master'
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 9e519fe1..20327280 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).isActive;
+ board.members.some(e => e.userId === userId && e.isActive);
Authentication.checkAdminOrCondition(userId, normalAccess);
};