Allow localhost to override HTTP access controls + change sieve runtime error default log level

This commit is contained in:
mdecimus
2024-08-30 19:50:06 +02:00
parent 660f89b909
commit 3e0946743d
2 changed files with 7 additions and 2 deletions

View File

@@ -63,7 +63,12 @@ impl JMAP {
let ctx = HttpContext::new(&session, &req);
match ctx.has_endpoint_access(&self.core).await {
StatusCode::OK => (),
status => return Ok(status.into_http_response()),
status => {
// Allow lookup to avoid lockout
if !session.remote_ip.is_loopback() {
return Ok(status.into_http_response());
}
}
}
match path.next().unwrap_or_default() {