mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-07 02:10:23 +00:00
perf: 修改 applet option
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user