mirror of https://github.com/jumpserver/jumpserver
commit
5add329a30
|
@ -45,6 +45,7 @@ class AccountViewSet(OrgBulkModelViewSet):
|
|||
accounts = asset.accounts.all()
|
||||
else:
|
||||
accounts = []
|
||||
accounts = self.filter_queryset(accounts)
|
||||
serializer = serializers.AccountSerializer(accounts, many=True)
|
||||
return Response(data=serializer.data)
|
||||
|
||||
|
|
Loading…
Reference in New Issue