mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 06:46:24 +00:00
fix: 修复获取资产授权的账号 API,过滤未激活的账号
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user