mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
PromoteListingController: return 403 for non-sponsors on special sorts.
This commit is contained in:
@@ -412,6 +412,11 @@ class PromoteListingController(ListingController):
|
||||
if not c.user_is_loggedin or not c.user.email_verified:
|
||||
# never reached--see MinimalController.on_validation_error
|
||||
return self.redirect("/ad_inq")
|
||||
|
||||
if (sort in ('underdelivered', 'reported', 'house') and
|
||||
not c.user_is_sponsor):
|
||||
self.abort403()
|
||||
|
||||
self.sort = sort
|
||||
self.sr = None
|
||||
if sr and sr == Frontpage.name:
|
||||
|
||||
Reference in New Issue
Block a user