user->isAllowed('Admin:Home')) { $this->flashError('You cannot access this with user role'); $this->redirect(App::DESTINATION_FRONT_HOMEPAGE); } } }