fix: incomplete fix for symlinked directories let scopes users and public-share recipients read and write files outside of scope

This commit is contained in:
Henrique Dias committed 2026-06-04 11:02:18 +02:00
1 parent 69c76d11cc
commit 3471ec2c4b
7 files changed
+368 -11

No files matched your search

+4
View File
@@ -115,6 +115,10 @@ func getFiles(d *data, path, commonPath string) ([]archives.FileInfo, error) {
return nil, nil
}
if ok, err := files.WithinScope(d.user.Fs, path); err != nil || !ok {
return nil, nil
}
info, err := d.user.Fs.Stat(path)
if err != nil {
return nil, err