Skip to content

Commit

Permalink
🐛 Fixing redirect empty url when user without permission come and log…
Browse files Browse the repository at this point in the history
… in backend

(cherry picked from commit 952510e)
  • Loading branch information
mfrancoisbbs committed Feb 6, 2019
1 parent 1f7ba24 commit 547f213
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function handle($request, Closure $next)
$menu = $this->config->get('expendable.menu');
$user = $this->auth->user();

if (method_exists($user, 'getFirstRedirect'))
if (method_exists($user, 'getFirstRedirect') && !empty($menu) && !empty($menu['left']))
{
return new RedirectResponse($this->auth->user()->getFirstRedirect($menu['left']));
}
Expand Down

0 comments on commit 547f213

Please sign in to comment.