From 0aef65bfb339aa9864a467a4041119fa7aa919a4 Mon Sep 17 00:00:00 2001 From: user Date: Sun, 27 Oct 2024 20:20:12 +0300 Subject: [PATCH] fix bug --- app/api/routes/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/routes/content.py b/app/api/routes/content.py index 0e6f3bb..3b19c62 100644 --- a/app/api/routes/content.py +++ b/app/api/routes/content.py @@ -50,7 +50,7 @@ async def s_api_v1_content_view(request, content_address: str): have_access = ( (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()) + content_id=content['encrypted_content'].id).first()) ) display_options = {