notifications: ignore notifications

pull/20/head
justcool393 2022-11-17 16:35:08 -06:00
parent 2c27b75b7a
commit 12881388d6
1 changed files with 1 additions and 0 deletions

View File

@ -979,6 +979,7 @@ class User(Base):
else:
if not other.parent_submission:
if not user: return False
if not other.sentto: return True # handled by Notification
if other.sentto == 2: return user.admin_level >= PERMS['VIEW_MODMAIL'] # type: ignore
if other.sentto != user.id: return user.admin_level >= PERMS['POST_COMMENT_MODERATION'] # type: ignore
if other.parent_submission and other.post.sub and not cls.can_see(user, other.post.subr): return False