mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复禁用的资产在luna页面显示的问题 (#2900)
parent
bf5acf7ef1
commit
033b44f9d2
|
@ -470,7 +470,7 @@ class AssetPermissionUtil(AssetPermissionCacheMixin):
|
|||
assets = defaultdict(lambda: defaultdict(int))
|
||||
for perm in self.permissions:
|
||||
actions = [perm.actions]
|
||||
_assets = perm.assets.all().only(*self.assets_only)
|
||||
_assets = perm.assets.valid().only(*self.assets_only)
|
||||
system_users = perm.system_users.all()
|
||||
iterable = itertools.product(_assets, system_users, actions)
|
||||
for asset, system_user, action in iterable:
|
||||
|
|
Loading…
Reference in New Issue