perf: 修改 applet option

pull/12091/head
ibuler 2023-11-10 17:16:31 +08:00 committed by 老广
parent e5e0c841a2
commit ba76f30af9
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ class _ConnectionTokenAccountSerializer(serializers.ModelSerializer):
@staticmethod
def get_su_from(account):
if not hasattr(account, 'asset'):
return {}
su_enabled = account.asset.platform.su_enabled
su_from = account.su_from
if not su_from or not su_enabled: