Fix wish edit causing 404
This commit is contained in:
parent
71a35338d6
commit
4303efaf9e
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,7 @@ if ('POST' === $_SERVER['REQUEST_METHOD'] && count($_POST) >= 0) {
|
|||
$page->messages[] = Page::success(__('Wish successfully updated.'), __('Success'));
|
||||
}
|
||||
|
||||
if (!$userIsAuthenticated || !$wish->exists) {
|
||||
if (!$wish->exists) {
|
||||
$page->errorDocument(404, $wish);
|
||||
}
|
||||
|
||||
|
@ -48,6 +48,10 @@ foreach ($wishlists as $wishlist) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!$userIsAuthenticated) {
|
||||
$page->errorDocument(404, $wish);
|
||||
}
|
||||
|
||||
$page->header();
|
||||
$page->bodyStart();
|
||||
$page->navigation();
|
||||
|
|
Loading…
Reference in a new issue