mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04: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)
|
sessionManager.getSessionInfo(sessionID, function(err, sessionInfo)
|
||||||
{
|
{
|
||||||
//skip session if it doesn't exist
|
//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;
|
if(ERR(err, callback)) return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue