small change to can_see logic

master
Aevann1 2022-08-20 15:05:02 +02:00
parent 734844291c
commit 3140adfbdb
2 changed files with 2 additions and 2 deletions

View File

@ -90,9 +90,9 @@ class Comment(Base):
if not self.parent_submission: return True if not self.parent_submission: return True
if self.post.sub != 'chudrama': return True if self.post.sub != 'chudrama': return True
if v: if v:
if v.truecoins >= 5000: return True
if v.id == self.author_id: return True if v.id == self.author_id: return True
if v.id == self.post.author_id: return True if v.id == self.post.author_id: return True
if v and v.truecoins >= 5000: return True
return False return False

View File

@ -82,8 +82,8 @@ class Submission(Base):
if SITE != 'rdrama.net': return True if SITE != 'rdrama.net': return True
if self.sub != 'chudrama': return True if self.sub != 'chudrama': return True
if v: if v:
if v.truecoins >= 5000: return True
if v.id == self.author_id: return True if v.id == self.author_id: return True
if v and v.truecoins >= 5000: return True
return False return False
@property @property