mirror of https://github.com/jumpserver/jumpserver
perf: 修改 applet option
parent
e5e0c841a2
commit
ba76f30af9
|
@ -58,6 +58,8 @@ class _ConnectionTokenAccountSerializer(serializers.ModelSerializer):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_su_from(account):
|
def get_su_from(account):
|
||||||
|
if not hasattr(account, 'asset'):
|
||||||
|
return {}
|
||||||
su_enabled = account.asset.platform.su_enabled
|
su_enabled = account.asset.platform.su_enabled
|
||||||
su_from = account.su_from
|
su_from = account.su_from
|
||||||
if not su_from or not su_enabled:
|
if not su_from or not su_enabled:
|
||||||
|
|
Loading…
Reference in New Issue