[Bugfix] 修复资产授权规则去重

pull/3263/head
BaiJiangJie 5 years ago
parent ec0cf38c3c
commit 08a19550b2

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

Loading…
Cancel
Save