fix: 修复 ssh 工具连接无法二级登录的问题

pull/7182/head
Eric 2021-11-12 14:49:25 +08:00 committed by Jiangjie.Bai
parent 90477146ed
commit e9dc1ad86a
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class AssetSystemUserSerializer(serializers.ModelSerializer):
model = SystemUser
only_fields = (
'id', 'name', 'username', 'priority', 'protocol', 'login_mode',
'sftp_root', 'username_same_with_user',
'sftp_root', 'username_same_with_user', 'su_enabled', 'su_from',
)
fields = list(only_fields) + ["actions"]
read_only_fields = fields