mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-04 01:43:40 -04:00
🐛Fix anonymous clan details page viewing
This commit is contained in:
parent
b7fd2a89ee
commit
57bdbb4432
1 changed files with 0 additions and 2 deletions
|
@ -97,8 +97,6 @@ ClanHandler = class ClanHandler extends Handler
|
||||||
|
|
||||||
getMembers: (req, res, clanID) ->
|
getMembers: (req, res, clanID) ->
|
||||||
# TODO: add tests
|
# TODO: add tests
|
||||||
return @sendForbiddenError(res) unless req.user? and not req.user.isAnonymous()
|
|
||||||
clanIDs = req.user.get('clans') ? []
|
|
||||||
Clan.findById clanID, (err, clan) =>
|
Clan.findById clanID, (err, clan) =>
|
||||||
return @sendDatabaseError(res, err) if err
|
return @sendDatabaseError(res, err) if err
|
||||||
return @sendDatabaseError(res, err) unless clan
|
return @sendDatabaseError(res, err) unless clan
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue