mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-02 16:05:29 +00:00
[Bugfix] 修复禁用的资产在luna页面显示的问题 (#2900)
This commit is contained in:
@@ -470,7 +470,7 @@ class AssetPermissionUtil(AssetPermissionCacheMixin):
|
|||||||
assets = defaultdict(lambda: defaultdict(int))
|
assets = defaultdict(lambda: defaultdict(int))
|
||||||
for perm in self.permissions:
|
for perm in self.permissions:
|
||||||
actions = [perm.actions]
|
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()
|
system_users = perm.system_users.all()
|
||||||
iterable = itertools.product(_assets, system_users, actions)
|
iterable = itertools.product(_assets, system_users, actions)
|
||||||
for asset, system_user, action in iterable:
|
for asset, system_user, action in iterable:
|
||||||
|
Reference in New Issue
Block a user