mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
Allow admins to view and edit multis not owned by them.
This commit is contained in:
@@ -1390,9 +1390,15 @@ class LabeledMulti(tdb_cassandra.Thing, MultiReddit):
|
||||
return _('%s subreddits') % self.name
|
||||
|
||||
def can_view(self, user):
|
||||
if c.user_is_admin:
|
||||
return True
|
||||
|
||||
return user == self.owner or self.visibility == 'public'
|
||||
|
||||
def can_edit(self, user):
|
||||
if c.user_is_admin:
|
||||
return True
|
||||
|
||||
return user == self.owner
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user