mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 14:27:58 -05:00
Allow all users to view a requested ad.
Previously this was only allowed for sponsors or the owner of the ad.
This commit is contained in:
@@ -237,11 +237,6 @@ class ListingWithPromos(SubredditListingController):
|
||||
except NotFound:
|
||||
self.abort404()
|
||||
|
||||
if not (link.promoted and
|
||||
(c.user_is_sponsor or
|
||||
c.user_is_loggedin and link.author_id == c.user._id)):
|
||||
self.abort403()
|
||||
|
||||
if not promote.is_live_on_sr(link, c.site):
|
||||
self.abort403()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user