From 0aa238477f78da78e49f9880fd982f34cc307f5f Mon Sep 17 00:00:00 2001 From: Joerg Linge Date: Mon, 23 Apr 2018 17:33:36 +0200 Subject: [PATCH] use Subdir instead of Username in filepath --- app/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/fs.go b/app/fs.go index f06ac7d..2c7624b 100644 --- a/app/fs.go +++ b/app/fs.go @@ -46,7 +46,7 @@ func (d Dir) resolve(ctx context.Context, name string) string { if authInfo != nil && authInfo.Authenticated { userInfo := d.Config.Users[authInfo.Username] if userInfo != nil && userInfo.Subdir != nil { - return filepath.Join(dir, authInfo.Username, filepath.FromSlash(path.Clean("/"+name))) + return filepath.Join(dir, *userInfo.Subdir, filepath.FromSlash(path.Clean("/"+name))) } }