mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-31 01:38:08 -05:00
Disallow submitting to banned Subreddits via API
This commit is contained in:
@@ -347,6 +347,8 @@ class Subreddit(Thing, Printable):
|
||||
return True
|
||||
elif self.is_banned(user) and not promotion:
|
||||
return False
|
||||
elif self.spammy():
|
||||
return False
|
||||
elif self.type == 'public':
|
||||
return True
|
||||
elif self.is_moderator(user) or self.is_contributor(user):
|
||||
|
||||
Reference in New Issue
Block a user