Skip to content

Commit

Permalink
fix:修复授权的助手查找不到的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zgqgit committed Apr 10, 2024
1 parent 5de9f70 commit f2e94a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/bisheng/api/services/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_assistant(cls,
role_ids = [role.id for role in user_role]
role_access = RoleAccessDao.get_role_access(role_ids, AccessType.ASSISTANT_READ)
if role_access:
assistant_ids_extra = [access.third_id for access in role_access]
assistant_ids_extra = [UUID(access.third_id).hex for access in role_access]
res, total = AssistantDao.get_assistants(user.user_id, name, assistant_ids_extra, status, page, limit)

for one in res:
Expand Down

0 comments on commit f2e94a4

Please sign in to comment.