mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
Make the can_submit functions consistent
This commit is contained in:
@@ -662,7 +662,7 @@ class FakeSubreddit(Subreddit):
|
||||
def can_comment(self, user):
|
||||
return False
|
||||
|
||||
def can_submit(self, user):
|
||||
def can_submit(self, user, promotion=False):
|
||||
return False
|
||||
|
||||
def can_change_stylesheet(self, user):
|
||||
@@ -958,7 +958,7 @@ class SubSR(FakeSubreddit):
|
||||
def can_comment(self, user):
|
||||
return False
|
||||
|
||||
def can_submit(self, user):
|
||||
def can_submit(self, user, promotion=False):
|
||||
return True
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user