mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-24 14:02:01 +00:00
perf: 修改 applet option
This commit is contained in:
parent
e5e0c841a2
commit
ba76f30af9
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user