forked from MarseyWorld/MarseyWorld
user and
parent
1b721126a2
commit
0b146d0b7b
|
@ -1000,7 +1000,7 @@ class User(Base):
|
||||||
if not cls.can_see(user, other.author): return False
|
if not cls.can_see(user, other.author): return False
|
||||||
if user and user.id == other.author_id: return True
|
if user and user.id == other.author_id: return True
|
||||||
if isinstance(other, Submission):
|
if isinstance(other, Submission):
|
||||||
if "!YOU!" in other.title and not user.can_see_you_post: return False
|
if "!YOU!" in other.title and not (user and user.can_see_you_post): return False
|
||||||
if other.sub and not cls.can_see(user, other.subr): return False
|
if other.sub and not cls.can_see(user, other.subr): return False
|
||||||
else:
|
else:
|
||||||
if not other.parent_submission:
|
if not other.parent_submission:
|
||||||
|
|
Loading…
Reference in New Issue