mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Merge pull request #1689 from mluto/fix-checkAccess-omitted-cb
Fix missing callback in SecurityManager.checkAccess
This commit is contained in:
commit
c1806e54e2
1 changed files with 6 additions and 1 deletions
|
@ -131,7 +131,12 @@ exports.checkAccess = function (padID, sessionCookie, token, password, callback)
|
|||
sessionManager.getSessionInfo(sessionID, function(err, sessionInfo)
|
||||
{
|
||||
//skip session if it doesn't exist
|
||||
if(err && err.message == "sessionID does not exist") return;
|
||||
if(err && err.message == "sessionID does not exist")
|
||||
{
|
||||
authLogger.debug("Auth failed: unknown session");
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
|
||||
if(ERR(err, callback)) return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue