Permalink
Browse files

Parse non-derp way.

  • Loading branch information...
1 parent fa8ebcb commit 6e18172a8422b3aa25df1840df906d3c8b9fa9c1 Tom Bell committed Apr 11, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/scripts/auth.coffee
@@ -33,7 +33,10 @@ module.exports = (robot) ->
unless process.env.HUBOT_AUTH_ADMIN?
robot.logger.warning 'The HUBOT_AUTH_ADMIN environment variable not set'
- admins = (process.env.HUBOT_AUTH_ADMIN or []).split ','
+ if process.env.HUBOT_AUTH_ADMIN?
+ admins = process.env.HUBOT_AUTH_ADMIN.split ','
+ else
+ admins = []
class Auth
hasRole: (user, roles) ->

0 comments on commit 6e18172

Please sign in to comment.