Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Fix auth middleware bug #119

Merged
merged 1 commit into from
Dec 20, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion middleware/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = function (options) {
}

req.session.name = row.name;
if (config.admins[req.session.name]) {
if (config.admins.hasOwnProperty(req.session.name)) {
req.session.isAdmin = true;
}
debug('auth pass user: %j, onlySync: %s, isAdmin: %s, headers: %j',
Expand Down