admins: let mops who can mop posts see posts regardless of browser (#45)
Co-authored-by: justcool393 <justcool393@gmail.com> Reviewed-on: #45 Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net> Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>pull/35/head
parent
5da7ac5549
commit
d1877c6c44
|
@ -1023,9 +1023,9 @@ class User(Base):
|
|||
if isinstance(other, Submission):
|
||||
if "!YOU!" in other.title and not user: return False
|
||||
if browser != 'webview' and other.author_id == AEVANN_ID and other.title.startswith('[ANDROID]'):
|
||||
return False
|
||||
if browser != 'apple' and other.author_id == CARP_ID and other.title.startswith('[APPLE]') and not (user and user.id in (AEVANN_ID, SNAKES_ID)):
|
||||
return False
|
||||
return user and user.admin_level >= PERMS['POST_COMMENT_MODERATION']
|
||||
if browser != 'apple' and other.author_id == CARP_ID and other.title.startswith('[APPLE]'):
|
||||
return user and user.admin_level >= PERMS['POST_COMMENT_MODERATION']
|
||||
if other.sub and not cls.can_see(user, other.subr): return False
|
||||
else:
|
||||
if not other.parent_submission:
|
||||
|
|
Loading…
Reference in New Issue