Merge branch 'master' into production

This commit is contained in:
Nick Winter 2014-03-21 17:20:54 -07:00
commit 4abb417510
2 changed files with 4 additions and 1 deletions

View file

@ -9,7 +9,8 @@ block content
each cla in clas
tr
td #{cla.name}
td #{cla.email}
if me.isAdmin()
td #{cla.email}
td #{cla.githubUsername}
td #{cla.created}

View file

@ -13,6 +13,8 @@ module.exports.setup = (app) ->
resultCursor = collection.find {}
resultCursor.toArray (err, docs) ->
return log.error "Couldn't fetch distinct CLA submissions because #{err}" if err
unless req.user?.isAdmin()
delete doc.email for doc in docs
res.send docs
res.end