mirror of https://github.com/jumpserver/jumpserver
feat: 修改获取应用用户API
parent
bdab93260f
commit
1e99be1775
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue