fix important
This commit is contained in:
1 parent
181d980e48
commit
1b9a965869
2 files changed
+4
-4
No files matched your search
@@ -170,13 +170,13 @@ class PlayerTemplates:
|
||||
have_access = (
|
||||
(content.owner_address == user_wallet_address)
|
||||
or bool(self.db_session.query(UserContent).filter_by(owner_address=user_wallet_address, status='active', content_id=content.id).first())
|
||||
or bool(self.db_session.query(UserContent).filter(
|
||||
or bool(self.db_session.query(StarsInvoice).filter(
|
||||
and_(
|
||||
StarsInvoice.user_id == self.user.id,
|
||||
StarsInvoice.content_hash == content.hash,
|
||||
StarsInvoice.paid == True
|
||||
)
|
||||
))
|
||||
).first())
|
||||
)
|
||||
if have_access:
|
||||
full_content = self.db_session.query(StoredContent).filter_by(
|
||||
|
||||
Reference in new issue
Block a user