Merge pull request #1176 from marcelklehr/fix/padaccess-cookie

Fix #1115 correctly reference session cookie
pull/1178/merge
John McLear 2012-11-17 05:23:19 -08:00
commit 5009ab1174
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module.exports = function (req, res, callback) {
// FIXME: Why is this ever undefined?? // FIXME: Why is this ever undefined??
if (req.cookies === undefined) req.cookies = {}; if (req.cookies === undefined) req.cookies = {};
securityManager.checkAccess(req.params.pad, req.cookies.sessionid, req.cookies.token, req.cookies.password, function(err, accessObj) { securityManager.checkAccess(req.params.pad, req.cookies.sessionID, req.cookies.token, req.cookies.password, function(err, accessObj) {
if(ERR(err, callback)) return; if(ERR(err, callback)) return;
//there is access, continue //there is access, continue