Skip to content

Commit

Permalink
Fix: Users cannot view my-page if they only have visitor access to a …
Browse files Browse the repository at this point in the history
…tree
  • Loading branch information
fisharebest committed Sep 21, 2020
1 parent 10a93a5 commit 8673e6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/Routes/WebRoutes.php
Expand Up @@ -515,11 +515,11 @@ public function load(Map $router): void
$router->get(EditName::class, '/edit-name/{xref}/{fact_id}');
});

// Member routes.
// User routes with a tree.
$router->attach('', '/tree/{tree}', static function (Map $router) {
$router->extras([
'middleware' => [
AuthMember::class,
AuthLoggedIn::class,
],
]);

Expand All @@ -534,7 +534,7 @@ public function load(Map $router): void
$router->post(UserPageBlockUpdate::class, '/my-page-block-edit');
});

// User routes.
// User routes without a tree.
$router->attach('', '', static function (Map $router) {
$router->extras([
'middleware' => [
Expand Down

0 comments on commit 8673e6b

Please sign in to comment.