mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Quarantine: Disable share api endpoint.
This commit is contained in:
@@ -1938,7 +1938,9 @@ class ApiController(RedditController):
|
||||
elif shareform.has_errors("ratelimit", errors.RATELIMIT):
|
||||
return
|
||||
|
||||
if not link.subreddit_slow.can_view(c.user):
|
||||
subreddit = link.subreddit_slow
|
||||
|
||||
if subreddit.quarantine or not subreddit.can_view(c.user):
|
||||
return abort(403, 'forbidden')
|
||||
|
||||
emails, users = share_to
|
||||
|
||||
Reference in New Issue
Block a user