Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Parse non-derp way.

  • Loading branch information...
commit 6e18172a8422b3aa25df1840df906d3c8b9fa9c1 1 parent fa8ebcb
Tom Bell authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/scripts/auth.coffee
View
5 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) ->
Please sign in to comment.
Something went wrong with that request. Please try again.