Skip to content

Commit

Permalink
Don't show mkdir option when the directory is not upload allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
Atreyagaurav committed Jul 14, 2024
1 parent 31a270a commit 52c5cc0
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 52c5cc0

Please sign in to comment.