Skip to content

Commit

Permalink
sprintfix: 修复仅拥有部分业务权限的用户查询任务历史 502 的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuoZhuoCrayon committed Feb 29, 2024
1 parent 1df0659 commit eab2490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/node_man/tools/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def get_job_queryset_with_biz_scope(cls, all_biz_info, biz_info, biz_permission,
if not biz_scope:
raise ValueError("该用户没有任何业务的权限")

if len(biz_scope) > len(biz_info) // 2:
if len(biz_scope) > len(all_biz_info) // 2:
need_reverse_query = True
biz_scope = list(set(list(all_biz_info)) - set(biz_scope))
else:
Expand Down

0 comments on commit eab2490

Please sign in to comment.