Merge pull request #2990 from jumpserver/dev

Dev
pull/3007/head
BaiJiangJie 2019-07-18 13:58:47 +08:00 committed by GitHub
commit 48cfc4d4ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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