forked from rDrama/rDrama
better can_see logic
parent
d11a63101e
commit
94ed49569a
|
@ -979,12 +979,7 @@ class User(Base):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if other.parent_submission:
|
if other.parent_submission:
|
||||||
if not (user and user.patron) and other.post.title.lower().startswith('[paypigs]'):
|
return cls.can_see(user, other.post)
|
||||||
return False
|
|
||||||
|
|
||||||
if user and user.id == other.post.author_id: return True
|
|
||||||
if other.post.sub and not cls.can_see(user, other.post.subr): return False
|
|
||||||
# if not cls.can_see(user, other.post): return False
|
|
||||||
else:
|
else:
|
||||||
if not user and not other.wall_user_id: return False
|
if not user and not other.wall_user_id: return False
|
||||||
if not other.sentto: return True # handled by Notification
|
if not other.sentto: return True # handled by Notification
|
||||||
|
|
Loading…
Reference in New Issue