summaryrefslogtreecommitdiff
path: root/app/Controller/App.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/App.php')
-rw-r--r--app/Controller/App.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/Controller/App.php b/app/Controller/App.php
index 193c2583..7fa97d4f 100644
--- a/app/Controller/App.php
+++ b/app/Controller/App.php
@@ -20,12 +20,14 @@ class App extends Base
public function index()
{
$user_id = $this->acl->getUserId();
- $projects = $this->projectPermission->getAllowedProjects($user_id);
+ $projects = $this->projectPermission->getMemberProjects($user_id);
+ $project_ids = array_keys($projects);
$this->response->html($this->template->layout('app_index', array(
- 'board_selector' => $projects,
- 'events' => $this->projectActivity->getProjects(array_keys($projects), 10),
+ 'board_selector' => $this->projectPermission->getAllowedProjects($user_id),
+ 'events' => $this->projectActivity->getProjects($project_ids, 10),
'tasks' => $this->taskFinder->getAllTasksByUser($user_id),
+ 'projects' => $this->project->getSummary($project_ids),
'title' => t('Dashboard'),
)));
}