Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #83 from ldebruijn/master
Browse files Browse the repository at this point in the history
chore: Use config abstraction instead of calling process.env directly
  • Loading branch information
iloire authored Feb 3, 2017
2 parents 6423cad + 0dcd8c4 commit 0744ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webserver/routes/web-auth-route.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = (function (){
}

function isAdmin(email){
var admins = (process.env.WATCHMEN_ADMINS || '').split(',').map(function(email){ return email.trim (); });
var admins = (config.admins || '').split(',').map(function(email){ return email.trim (); });
return admins.indexOf(email)>-1;
}

Expand Down

0 comments on commit 0744ef6

Please sign in to comment.