Commit 033b44f9 authored by 八千流's avatar 八千流 Committed by 老广

[Bugfix] 修复禁用的资产在luna页面显示的问题 (#2900)

parent bf5acf7e
......@@ -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:
......
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