diff --git a/app/api/routes/content.py b/app/api/routes/content.py index f365cf3..0e6f3bb 100644 --- a/app/api/routes/content.py +++ b/app/api/routes/content.py @@ -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()) ) diff --git a/app/core/background/license_service.py b/app/core/background/license_service.py index 6ecb33a..e563a97 100644 --- a/app/core/background/license_service.py +++ b/app/core/background/license_service.py @@ -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: