Skip to content

Commit

Permalink
Validate gold users correctly
Browse files Browse the repository at this point in the history
Return a 403 Forbidden instead of raising an exception that never gets caught
  • Loading branch information
rram committed Mar 30, 2012
1 parent b68a879 commit 06db06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/controllers/validator/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ class VGold(VUser):
def run(self):
VUser.run(self)
if not c.user.gold:
raise GoldRequiredException
abort(403, 'forbidden')

class VSponsorAdmin(VVerifiedUser):
"""
Expand Down

0 comments on commit 06db06f

Please sign in to comment.