aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGaurav Atreya <allmanpride@gmail.com>2024-07-14 02:33:40 +0000
committerGaurav Atreya <allmanpride@gmail.com>2024-07-14 02:33:40 +0000
commit52c5cc09fce55ed2c3c3d98343e31b5da6f340af (patch)
tree5cb7295d7dcdc976107b6e2e768d49ef950e6c37 /src
parentBump deps (diff)
downloadminiserve-52c5cc09fce55ed2c3c3d98343e31b5da6f340af.tar.gz
miniserve-52c5cc09fce55ed2c3c3d98343e31b5da6f340af.zip
Don't show mkdir option when the directory is not upload allowed
Fixes #1249
Diffstat (limited to '')
-rw-r--r--src/renderer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index 7896dc3..9c60dcc 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -117,7 +117,7 @@ pub fn page(
}
}
}
- @if conf.mkdir_enabled {
+ @if conf.mkdir_enabled && upload_allowed {
div.toolbar_box {
form id="mkdir" action=(mkdir_action) method="POST" enctype="multipart/form-data" {
p { "Specify a directory name to create" }