From 1e99be17753ed0941e3c5d56ae998de7c154fc08 Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 3 Jun 2021 13:59:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E7=94=A8=E6=88=B7API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/applications/api/application.py | 2 -- apps/perms/utils/application/permission.py | 4 ---- 2 files changed, 6 deletions(-) diff --git a/apps/applications/api/application.py b/apps/applications/api/application.py index 93caa97d1..84426b6b2 100644 --- a/apps/applications/api/application.py +++ b/apps/applications/api/application.py @@ -42,8 +42,6 @@ class ApplicationUserListApi(generics.ListAPIView): application = self.get_application() if not application: return queryset - # if application.category == ApplicationCategoryChoices.remote_app: - # return queryset system_user_ids = ApplicationPermission.objects.filter(applications=application)\ .values_list('system_users', flat=True) if not system_user_ids: diff --git a/apps/perms/utils/application/permission.py b/apps/perms/utils/application/permission.py index 939a8e53c..c4ebb5bdb 100644 --- a/apps/perms/utils/application/permission.py +++ b/apps/perms/utils/application/permission.py @@ -72,7 +72,3 @@ def get_application_system_user_ids(user, application): def has_application_system_permission(user, application, system_user): system_user_ids = get_application_system_user_ids(user, application) return system_user.id in system_user_ids - - -def get_application_system_users_ids(application): - return system_users_id