summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-01-25 11:55:12 -0500
committerFrederic Guillot <fred@kanboard.net>2015-01-25 11:55:12 -0500
commite506648cbcda0b6021cf0a3b5e2f6381d8f1d0ea (patch)
treecbb12b785f0ef33e725ef24a277fef7a682af5ff /app/Controller
parent655d75a3cf154d14b10ffbf2baa42a549cf214f7 (diff)
Do not show inactive projects info on the dashboard and update picodb (merge #546)
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/App.php2
-rw-r--r--app/Controller/Task.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/App.php b/app/Controller/App.php
index cf8d606f..6eab2bcd 100644
--- a/app/Controller/App.php
+++ b/app/Controller/App.php
@@ -31,7 +31,7 @@ class App extends Base
{
$status = array(SubTaskModel::STATUS_TODO, SubTaskModel::STATUS_INPROGRESS);
$user_id = $this->userSession->getId();
- $projects = $this->projectPermission->getMemberProjects($user_id);
+ $projects = $this->projectPermission->getActiveMemberProjects($user_id);
$project_ids = array_keys($projects);
$task_paginator = $this->paginator
diff --git a/app/Controller/Task.php b/app/Controller/Task.php
index 7f85f36c..c25a4b9d 100644
--- a/app/Controller/Task.php
+++ b/app/Controller/Task.php
@@ -418,7 +418,7 @@ class Task extends Base
$task = $this->getTask();
$values = $task;
$errors = array();
- $projects_list = $this->projectPermission->getMemberProjects($this->userSession->getId());
+ $projects_list = $this->projectPermission->getActiveMemberProjects($this->userSession->getId());
unset($projects_list[$task['project_id']]);
@@ -457,7 +457,7 @@ class Task extends Base
$task = $this->getTask();
$values = $task;
$errors = array();
- $projects_list = $this->projectPermission->getMemberProjects($this->userSession->getId());
+ $projects_list = $this->projectPermission->getActiveMemberProjects($this->userSession->getId());
unset($projects_list[$task['project_id']]);