Don't break if there is no session cookie.

This commit is contained in:
Marcel Klehr 2012-09-11 20:59:19 +02:00
parent a4bd92c184
commit d05d587f21
1 changed files with 5 additions and 0 deletions

View File

@ -117,6 +117,11 @@ exports.checkAccess = function (padID, sessionCookie, token, password, callback)
//get information about all sessions contained in this cookie
function(callback)
{
if (!sessionCookie) {
callback();
return;
}
var sessionIDs = sessionCookie.split(',');
async.foreach(sessionIDs, function(sessionID) {
sessionManager.getSessionInfo(sessionID, function(err, sessionInfo) {