From 6af419a88e3c71a84ec425bbbe35c99afcbfc9f5 Mon Sep 17 00:00:00 2001 From: muxator Date: Wed, 29 Aug 2018 02:33:29 +0200 Subject: [PATCH] SecurityManager.js: early return, no functional changes --- src/node/db/SecurityManager.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/node/db/SecurityManager.js b/src/node/db/SecurityManager.js index 98feafb3..f930b961 100644 --- a/src/node/db/SecurityManager.js +++ b/src/node/db/SecurityManager.js @@ -90,13 +90,13 @@ exports.checkAccess = function (padID, sessionCookie, token, password, callback) // grant or deny access, with author of token callback(null, statusObject); }); + + return; } + // user may create new pads - no need to check anything - else - { - // grant access, with author of token - callback(null, statusObject); - } + // grant access, with author of token + callback(null, statusObject); }); //don't continue