mirror of https://github.com/jumpserver/jumpserver
fix: 修复获取资产授权的账号 API,过滤未激活的账号
parent
eef067c9ca
commit
71f3fe64b4
|
@ -38,7 +38,7 @@ class PermAccountUtil(AssetPermissionUtil):
|
|||
alias_action_bit_mapper[alias] |= perm.actions
|
||||
alias_expired_mapper[alias].append(perm.date_expired)
|
||||
|
||||
asset_accounts = asset.accounts.all()
|
||||
asset_accounts = asset.accounts.all().active()
|
||||
username_account_mapper = {account.username: account for account in asset_accounts}
|
||||
|
||||
cleaned_accounts_action_bit = defaultdict(int)
|
||||
|
|
Loading…
Reference in New Issue