Unverified Commit ed0f5a68 authored by Eric_Lee's avatar Eric_Lee Committed by GitHub

Merge pull request #180 from jumpserver/dev_bugfix

[Update] remove org name
parents 7653c841 a268a0e1
......@@ -29,9 +29,6 @@ func NewUserVolume(user *model.User, addr, hostId string) *UserVolume {
assets := service.GetUserAssetByID(user.ID, hostId)
if len(assets) == 1 {
homename = assets[0].Hostname
if assets[0].OrgID != "" {
homename = fmt.Sprintf("%s.%s", assets[0].Hostname, assets[0].OrgName)
}
basePath = filepath.Join("/", homename)
}
userSftp = srvconn.NewUserSftpConnWithAssets(user, addr, assets...)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment