We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a626956 commit 555e67cCopy full SHA for 555e67c
1 file changed
modules/backend/controllers/Index.php
@@ -72,10 +72,7 @@ protected function initReportContainer()
72
protected function checkPermissionRedirect()
73
{
74
if (!$this->user->hasAccess('backend.access_dashboard')) {
75
- $true = function () {
76
- return true;
77
- };
78
- if ($first = array_first(BackendMenu::listMainMenuItems(), $true)) {
+ if ($first = array_first(BackendMenu::listMainMenuItems())) {
79
return Redirect::intended($first->url);
80
}
81
return Backend::redirect('backend/users/myaccount');
0 commit comments