mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
replaced all stop callbacks with customError callbacks. Fixes #270
This commit is contained in:
parent
22fd5ae33d
commit
6684d6ed52
7 changed files with 59 additions and 38 deletions
|
@ -118,7 +118,7 @@ exports.checkAccess = function (padID, sessionID, token, password, callback)
|
|||
sessionManager.getSessionInfo(sessionID, function(err, sessionInfo)
|
||||
{
|
||||
//skip session validation if the session doesn't exists
|
||||
if(err && err.stop == "sessionID does not exist")
|
||||
if(err && err.message == "sessionID does not exist")
|
||||
{
|
||||
callback();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue