From d3176b68a816dd1adf7b4e36c17ab934511ed5f3 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 24 Mar 2025 10:04:50 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=20admin=20token=20?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/models/connection_token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/models/connection_token.py b/apps/authentication/models/connection_token.py index 14e080485..69747a843 100644 --- a/apps/authentication/models/connection_token.py +++ b/apps/authentication/models/connection_token.py @@ -341,7 +341,7 @@ class AdminConnectionToken(ConnectionToken): @classmethod def get_user_permed_account(cls, user, asset, account_name, protocol): - account = asset.accounts.filter(name=cls.account).first() + account = asset.accounts.filter(name=account_name).first() if not account: return None account.actions = ActionChoices.all()