aboutsummaryrefslogtreecommitdiff
path: root/src/controller.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.rs')
-rw-r--r--src/controller.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/controller.rs b/src/controller.rs
index 3e9fb29..e63ef97 100644
--- a/src/controller.rs
+++ b/src/controller.rs
@@ -381,8 +381,8 @@ impl Controller for MultiUserController {
parts: &Parts,
) {
let username = username_from_parts(&parts).unwrap();
- if context.path.components().count() == 0 {
- if context.branch.0 == username {
+ if context.branch.0 == username {
+ if context.path.components().count() == 0 {
match tree {
None => page.body.push_str(EMPTY_HOME_HINT),
Some(tree) => {
@@ -393,8 +393,6 @@ impl Controller for MultiUserController {
}
}
}
- } else {
- self.list_shares(&context.repo, &context.branch, username, &mut page.body);
}
}
}