Skip to content

Commit

Permalink
Merge pull request #1442 from Atreyagaurav/master
Browse files Browse the repository at this point in the history
Don't show mkdir option when the directory is not upload allowed
  • Loading branch information
svenstaro authored Sep 12, 2024
2 parents 07af07c + 52c5cc0 commit bc2bde3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down

0 comments on commit bc2bde3

Please sign in to comment.