fix: 修复用户列表出现服务账号的问题

pull/7687/head
Jiangjie.Bai 2022-02-23 18:28:23 +08:00
parent add4d8d2cd
commit 291f2b0e13
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ class RoleMixin:
@classmethod @classmethod
def get_org_users(cls, org=None): def get_org_users(cls, org=None):
queryset = cls.objects.all() queryset = cls.get_nature_users()
if org is None: if org is None:
org = current_org org = current_org
if not org.is_root(): if not org.is_root():