summaryrefslogtreecommitdiffstats
path: root/server/authentication.js
diff options
context:
space:
mode:
authormayjs <johannes.may@udo.edu>2017-05-15 22:10:46 +0200
committermayjs <johannes.may@udo.edu>2017-05-15 22:10:46 +0200
commit25b26657da71da05b09fff48f1329ce936ae022b (patch)
treed21011b91134a2f684eb3dd1a15ca3551ef0fdea /server/authentication.js
parentc59891d44b09af1ed2112b1f524046376167dbed (diff)
downloadwekan-25b26657da71da05b09fff48f1329ce936ae022b.tar.gz
wekan-25b26657da71da05b09fff48f1329ce936ae022b.tar.bz2
wekan-25b26657da71da05b09fff48f1329ce936ae022b.zip
Fixed eslint errors
Diffstat (limited to 'server/authentication.js')
-rw-r--r--server/authentication.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/authentication.js b/server/authentication.js
index 14e9d1c4..23ed8f56 100644
--- a/server/authentication.js
+++ b/server/authentication.js
@@ -37,16 +37,16 @@ Meteor.startup(() => {
error.statusCode = 403;
throw error;
}
- }
+ };
// Helper function. Will throw an error if the user does not have read only access to the given board
Authentication.checkBoardAccess = function(userId, boardId) {
Authentication.checkLoggedIn(userId);
const board = Boards.findOne({ _id: boardId });
- const normalAccess = board.permission === 'public' || board.members.some(e => e.userId === userId);
+ const normalAccess = board.permission === 'public' || board.members.some((e) => e.userId === userId);
Authentication.checkAdminOrCondition(userId, normalAccess);
- }
+ };
});