Merge pull request #3263 from jumpserver/dev_bugfix

[Bugfix] 修复资产授权规则去重
pull/3264/head
BaiJiangJie 2019-09-24 11:36:41 +08:00 committed by GitHub
commit cbfcc75c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ class AssetPermissionViewSet(viewsets.ModelViewSet):
queryset = self.filter_node(queryset)
queryset = self.filter_system_user(queryset)
queryset = self.filter_user_group(queryset)
queryset = queryset.distinct()
return queryset
def get_queryset(self):