We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2589097 commit 78b2e71Copy full SHA for 78b2e71
1 file changed
rating_api/routes/comment.py
@@ -200,7 +200,7 @@ async def get_comments(
200
if user and "rating.comment.review" in [scope['name'] for scope in user.get('session_scopes')]:
201
result = CommentGetAllWithAllInfo(limit=limit, offset=offset, total=len(comments))
202
comment_validator = CommentGetWithAllInfo
203
- elif user.get('id') == user_id:
+ elif user and user.get('id') == user_id:
204
result = CommentGetAllWithStatus(limit=limit, offset=offset, total=len(comments))
205
comment_validator = CommentGetWithStatus
206
else:
0 commit comments