fixes
This commit is contained in:
parent
7148e68e06
commit
cca0df268f
|
|
@ -48,7 +48,7 @@ async def s_api_v1_content_view(request, content_address: str):
|
|||
if request.ctx.user:
|
||||
user_wallet_address = request.ctx.user.wallet_address(request.ctx.db_session)
|
||||
have_access = (
|
||||
(content.owner_address == user_wallet_address)
|
||||
(content['encrypted_content'].owner_address == user_wallet_address)
|
||||
or bool(request.ctx.db_session.query(UserContent).filter_by(owner_address=user_wallet_address, status='active',
|
||||
content_id=content.id).first())
|
||||
)
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ async def license_index_loop(memory, platform_found: bool, seqno: int) -> [bool,
|
|||
|
||||
async def main_fn(memory, ):
|
||||
make_log("LicenseIndex", "Service started", level="info")
|
||||
platform_found = False
|
||||
platform_found = True
|
||||
seqno = 0
|
||||
while True:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in New Issue