From 8a8a7f9947246210d2d9164e1e0ef4abfe34b9f6 Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Mon, 16 Dec 2024 17:22:18 +0800 Subject: [PATCH] fix: filter custom assets in secret type check --- apps/accounts/serializers/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/accounts/serializers/account/account.py b/apps/accounts/serializers/account/account.py index a6d31671b..083abcdd7 100644 --- a/apps/accounts/serializers/account/account.py +++ b/apps/accounts/serializers/account/account.py @@ -385,7 +385,7 @@ class AssetAccountBulkSerializer( _results = {} for asset in assets: - if asset not in secret_type_supports: + if asset not in secret_type_supports and asset.category != Category.CUSTOM: _results[asset] = { 'error': _('Asset does not support this secret type: %s') % secret_type, 'state': 'error',