mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-22 04:57:39 +00:00
commit
48cfc4d4ce
@ -103,7 +103,7 @@ class AssetPermission(BasePermission):
|
|||||||
if pattern:
|
if pattern:
|
||||||
args.append(Q(nodes__key__regex=pattern))
|
args.append(Q(nodes__key__regex=pattern))
|
||||||
args = reduce(lambda x, y: x | y, args)
|
args = reduce(lambda x, y: x | y, args)
|
||||||
assets = Asset.objects.filter(args)
|
assets = Asset.objects.filter(args).distinct()
|
||||||
return assets
|
return assets
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user