Skip to content

Commit

Permalink
Merge pull request #911 from plentymarkets/fix/redirect
Browse files Browse the repository at this point in the history
use login url from shopUrls object
  • Loading branch information
stentrop authored Oct 27, 2020
2 parents e2c3077 + 350f032 commit befbd89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controllers/CategoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,11 @@ private function renderCategory($category, $params = [])

$this->categoryService->setCurrentCategory($category);
if ($this->categoryService->isHidden($category->id)) {
/** @var ShopUrls $shopUrls */
$shopUrls = pluginApp(ShopUrls::class);
/** @var AuthGuard $guard */
$guard = pluginApp(AuthGuard::class);
$guard->assertOrRedirect(true, '/login');
$guard->assertOrRedirect(true, $shopUrls->login);
}

/** @var ShopBuilderRequest $shopBuilderRequest */
Expand Down

0 comments on commit befbd89

Please sign in to comment.