fix: 修复获取资产授权的账号 API,过滤未激活的账号

pull/9539/head
Bai 2023-02-14 14:36:22 +08:00 committed by Jiangjie.Bai
parent eef067c9ca
commit 71f3fe64b4
1 changed files with 1 additions and 1 deletions

View File

@ -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)