Pass authenticated user to the SearchDashboard

refs #9644
This commit is contained in:
Eric Lippmann 2015-07-23 12:58:53 +02:00
parent fd77c30838
commit cccb34e98c
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@ class SearchController extends ActionController
{
public function indexAction()
{
$this->view->dashboard = SearchDashboard::search($this->params->get('q'));
$searchDashboard = new SearchDashboard();
$searchDashboard->setUser($this->Auth()->getUser());
$this->view->dashboard = $searchDashboard->search($this->params->get('q'));
// NOTE: This renders the dashboard twice. Remove this once we can catch exceptions thrown in view scripts.
$this->view->dashboard->render();