mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-26 09:08:05 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
4abb417510
2 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,7 @@ block content
|
||||||
each cla in clas
|
each cla in clas
|
||||||
tr
|
tr
|
||||||
td #{cla.name}
|
td #{cla.name}
|
||||||
|
if me.isAdmin()
|
||||||
td #{cla.email}
|
td #{cla.email}
|
||||||
td #{cla.githubUsername}
|
td #{cla.githubUsername}
|
||||||
td #{cla.created}
|
td #{cla.created}
|
||||||
|
|
|
@ -13,6 +13,8 @@ module.exports.setup = (app) ->
|
||||||
resultCursor = collection.find {}
|
resultCursor = collection.find {}
|
||||||
resultCursor.toArray (err, docs) ->
|
resultCursor.toArray (err, docs) ->
|
||||||
return log.error "Couldn't fetch distinct CLA submissions because #{err}" if err
|
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.send docs
|
||||||
res.end
|
res.end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue