feat: 修改获取应用用户API

pull/6224/head
Bai 2021-06-03 13:59:44 +08:00
parent bdab93260f
commit 1e99be1775
2 changed files with 0 additions and 6 deletions

View File

@ -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:

View File

@ -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