Skip to content

Commit

Permalink
fix: update (#2105)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu327 authored Jul 20, 2023
1 parent ee5fdd7 commit 5416edb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saas/backend/apps/role/views/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ def get_queryset(self):
queryset = Role.objects.alias(type_order=type_order).order_by("type_order", "-updated_time")

# 作为超级管理员时,可以管理所有分级管理员
if RoleListQuery(self.request.role, self.request.user).is_super_manager(self.request.user):
if RoleListQuery(self.request.role, self.request.user).is_user_super_manager(self.request.user):
return queryset

# 普通用户只能查询到自己加入的管理员
Expand Down

0 comments on commit 5416edb

Please sign in to comment.