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

Commit

Permalink
Use config abstraction instead of calling process.env directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebruijn committed Jan 14, 2017
1 parent 1428f4f commit 0dcd8c4
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 0dcd8c4

Please sign in to comment.