fix: perms on dufs -A -a @/:ro (#619)

This commit is contained in:
sigoden
2025-08-19 07:51:52 +08:00
committed by GitHub
parent 7f8269881d
commit f8a7873582
3 changed files with 26 additions and 5 deletions

View File

@@ -962,7 +962,7 @@ impl Server {
uri_prefix: self.args.uri_prefix.clone(),
allow_upload: self.args.allow_upload,
allow_delete: self.args.allow_delete,
auth: self.args.auth.exist(),
auth: self.args.auth.has_users(),
user,
editable,
};
@@ -1226,7 +1226,7 @@ impl Server {
allow_search: self.args.allow_search,
allow_archive: self.args.allow_archive,
dir_exists: exist,
auth: self.args.auth.exist(),
auth: self.args.auth.has_users(),
user,
paths,
};