Merge branch 'bugfix' of github.com:jumpserver/jumpserver into bugfix

pull/2874/head
ibuler 5 years ago
commit 58182712a2

@ -158,7 +158,7 @@ class UserGrantedAssetsApi(UserPermissionCacheMixin, AssetsFilterMixin, ListAPIV
system_user.actions = actions
system_users_granted.append(system_user)
asset.system_users_granted = system_users_granted
queryset.append(system_users_granted)
queryset.append(asset)
return queryset
def get_permissions(self):

@ -13,7 +13,7 @@ def get_session_asset_list():
def get_session_user_list():
return User.objects.values_list('username', flat=True)
return User.objects.exclude(role=User.ROLE_APP).values_list('username', flat=True)
def get_session_system_user_list():

Loading…
Cancel
Save