From 291f2b0e135bdc15b172a009175830eac986aab8 Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Wed, 23 Feb 2022 18:28:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=87=BA=E7=8E=B0=E6=9C=8D=E5=8A=A1=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/users/models/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/users/models/user.py b/apps/users/models/user.py index e40aedf17..f99434745 100644 --- a/apps/users/models/user.py +++ b/apps/users/models/user.py @@ -341,7 +341,7 @@ class RoleMixin: @classmethod def get_org_users(cls, org=None): - queryset = cls.objects.all() + queryset = cls.get_nature_users() if org is None: org = current_org if not org.is_root():