Skip to content

Commit

Permalink
More session removal
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaranj committed Aug 14, 2010
1 parent 0685a0e commit 77d923d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/auth.js
Expand Up @@ -33,10 +33,10 @@ Auth= module.exports = function(optionsOrStrategy) {
}
var isAuthenticated = function( request, scope ) {
if( scope === undefined ) {
return req.getAuthDetails().user !== undefined;
return request.getAuthDetails().user !== undefined;
}
else {
return req.getAuthDetails().scopedUsers[scope].user= undefined;
return request.getAuthDetails().scopedUsers[scope].user= undefined;
}
};

Expand Down

0 comments on commit 77d923d

Please sign in to comment.