mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-14 22:39:10 +00:00
perf: 优化变量名
This commit is contained in:
@@ -357,10 +357,6 @@ class RoleMixin:
|
||||
def get_super_admins(cls):
|
||||
return cls.objects.filter(role=cls.ROLE.ADMIN)
|
||||
|
||||
@classmethod
|
||||
def get_auditor_and_users(cls):
|
||||
return cls.objects.filter(role__in=[cls.ROLE.USER, cls.ROLE.AUDITOR])
|
||||
|
||||
@classmethod
|
||||
def get_org_admins(cls, org=None):
|
||||
from orgs.models import Organization
|
||||
|
Reference in New Issue
Block a user