diff --git a/src/classes/page.php b/src/classes/page.php index 4efff11b..a5cf249f 100644 --- a/src/classes/page.php +++ b/src/classes/page.php @@ -149,13 +149,6 @@ class Page */ $user = isset($_SESSION['user']->id) ? $_SESSION['user'] : new User(); - /** - * Power - */ - if (isset($user->power) && $user->power < $this->power && 0 !== $this->power) { - redirect(Page::PAGE_POWER . '&required=' . $this->power); - } - /** * Login */ @@ -167,6 +160,13 @@ class Page redirect(Page::PAGE_LOGIN); } + /** + * Power + */ + if (isset($user->power) && $user->power < $this->power && 0 !== $this->power) { + redirect(Page::PAGE_POWER . '&required=' . $this->power); + } + /** * Update */ diff --git a/src/pages/wishlists.php b/src/pages/wishlists.php index 6ee7fc6d..83984cc5 100644 --- a/src/pages/wishlists.php +++ b/src/pages/wishlists.php @@ -8,7 +8,7 @@ namespace wishthis; -$page = new Page(__FILE__, __('My lists')); +$page = new Page(__FILE__, __('My lists'), 1); $page->header(); $page->bodyStart(); $page->navigation();