mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 23:08:22 -05:00
Validate gold users correctly
Return a 403 Forbidden instead of raising an exception that never gets caught
This commit is contained in:
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user