summaryrefslogtreecommitdiff
path: root/app/Controller/Base.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-12-17 21:38:13 -0500
committerFrederic Guillot <fred@kanboard.net>2015-12-17 21:38:13 -0500
commitc83f589b22cd548c6de10bfb0c18f767ba7dffd8 (patch)
treea5842339000632f2270f7732bfd67d46fe88b4cd /app/Controller/Base.php
parentd0af39170c2c53cf7aa5178a0563bd0d2c667d46 (diff)
Show only active projects in board selector
Diffstat (limited to 'app/Controller/Base.php')
-rw-r--r--app/Controller/Base.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php
index 35ceee09..6d0ecae9 100644
--- a/app/Controller/Base.php
+++ b/app/Controller/Base.php
@@ -190,7 +190,7 @@ abstract class Base extends \Kanboard\Core\Base
$content = $this->template->render($template, $params);
$params['task_content_for_layout'] = $content;
$params['title'] = $params['task']['project_name'].' &gt; '.$params['task']['title'];
- $params['board_selector'] = $this->projectUserRole->getProjectsByUser($this->userSession->getId());
+ $params['board_selector'] = $this->projectUserRole->getActiveProjectsByUser($this->userSession->getId());
return $this->template->layout('task/layout', $params);
}
@@ -208,7 +208,7 @@ abstract class Base extends \Kanboard\Core\Base
$content = $this->template->render($template, $params);
$params['project_content_for_layout'] = $content;
$params['title'] = $params['project']['name'] === $params['title'] ? $params['title'] : $params['project']['name'].' &gt; '.$params['title'];
- $params['board_selector'] = $this->projectUserRole->getProjectsByUser($this->userSession->getId());
+ $params['board_selector'] = $this->projectUserRole->getActiveProjectsByUser($this->userSession->getId());
$params['sidebar_template'] = $sidebar_template;
return $this->template->layout('project/layout', $params);
@@ -289,7 +289,7 @@ abstract class Base extends \Kanboard\Core\Base
{
$project = $this->getProject();
$search = $this->request->getStringParam('search', $this->userSession->getFilters($project['id']));
- $board_selector = $this->projectUserRole->getProjectsByUser($this->userSession->getId());
+ $board_selector = $this->projectUserRole->getActiveProjectsByUser($this->userSession->getId());
unset($board_selector[$project['id']]);
$filters = array(