mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
fix: remove Method::Options auth check (#168)
* fix: remove Method::Options auth check * add tests --------- Co-authored-by: sigoden <sigoden@gmail.com>
This commit is contained in:
@@ -82,6 +82,11 @@ impl AccessControl {
|
||||
if self.rules.is_empty() {
|
||||
return GuardType::ReadWrite;
|
||||
}
|
||||
|
||||
if method == Method::OPTIONS {
|
||||
return GuardType::ReadOnly;
|
||||
}
|
||||
|
||||
let mut controls = vec![];
|
||||
for path in walk_path(path) {
|
||||
if let Some(control) = self.rules.get(path) {
|
||||
|
||||
Reference in New Issue
Block a user