feat: change auth logic/options

This commit is contained in:
sigoden
2022-06-02 19:32:19 +08:00
parent ecb3984edc
commit c50f97925c
3 changed files with 18 additions and 16 deletions

View File

@@ -519,7 +519,7 @@ impl InnerService {
.unwrap_or_default(),
_ => false,
},
None => self.args.no_auth_read && req.method() == Method::GET,
None => !self.args.auth_access && req.method() == Method::GET,
},
}
};