fix: restore symlink behavior as opt-in followExternalSymlinks

This commit is contained in:
Henrique Dias committed 2026-06-23 13:19:51 +02:00
1 parent 64511ce45e
commit a1063925e1
23 files changed
+384 -93

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ type ProxyAuth struct {
// Auth authenticates the user via an HTTP header.
func (a ProxyAuth) Auth(r *http.Request, usr users.Store, setting *settings.Settings, srv *settings.Server) (*users.User, error) {
username := r.Header.Get(a.Header)
user, err := usr.Get(srv.Root, username)
user, err := usr.Get(srv.Root, srv.FollowExternalSymlinks, username)
if errors.Is(err, fberrors.ErrNotExist) {
return a.createUser(usr, setting, srv, username)
}