Unverified Commit 1f5cc1ee authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

Merge pull request #2989 from jumpserver/dev_bai

[Update] 解决授权资产页面资产重复的问题
parents fc01b952 ce1bb66f
......@@ -103,7 +103,7 @@ class AssetPermission(BasePermission):
if pattern:
args.append(Q(nodes__key__regex=pattern))
args = reduce(lambda x, y: x | y, args)
assets = Asset.objects.filter(args)
assets = Asset.objects.filter(args).distinct()
return assets
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment