forked from MarseyWorld/MarseyWorld
add exception in can_see for offsites
parent
a8f7690dcf
commit
725179dc6c
|
@ -86,6 +86,7 @@ class Comment(Base):
|
|||
|
||||
@lazy
|
||||
def can_see(self, v):
|
||||
if SITE != 'rdrama.net': return True
|
||||
if not self.parent_submission: return True
|
||||
if self.post.sub != 'chudrama': return True
|
||||
if v:
|
||||
|
|
|
@ -79,6 +79,7 @@ class Submission(Base):
|
|||
|
||||
@lazy
|
||||
def can_see(self, v):
|
||||
if SITE != 'rdrama.net': return True
|
||||
if self.sub != 'chudrama': return True
|
||||
if v:
|
||||
if v.id == self.author_id: return True
|
||||
|
|
Loading…
Reference in New Issue