From 0dcd8c4f4656c4ca4934cde3828fad8860370c7b Mon Sep 17 00:00:00 2001 From: Lars de Bruijn Date: Sat, 14 Jan 2017 23:58:29 +0000 Subject: [PATCH] Use config abstraction instead of calling process.env directly --- webserver/routes/web-auth-route.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver/routes/web-auth-route.js b/webserver/routes/web-auth-route.js index a0bf153e..e99be511 100644 --- a/webserver/routes/web-auth-route.js +++ b/webserver/routes/web-auth-route.js @@ -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; }