mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复资产授权规则去重
parent
ec0cf38c3c
commit
08a19550b2
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue