diff options
Diffstat (limited to 'src/web/web_server.rs')
-rw-r--r-- | src/web/web_server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/web_server.rs b/src/web/web_server.rs index 6152f282..cc6eed57 100644 --- a/src/web/web_server.rs +++ b/src/web/web_server.rs @@ -99,7 +99,7 @@ async fn serve_file(garage: Arc<Garage>, req: Request<Body>) -> Result<Response< .filter(|b| { b.state .as_option() - .map(|x| *x.website_access.get()) + .map(|x| x.website_config.get().is_some()) .unwrap_or(false) }) .ok_or(Error::NotFound)?; |