diff options
author | Timotheus Pokorra <timotheus.pokorra@solidcharity.com> | 2015-06-03 12:42:48 +0200 |
---|---|---|
committer | Timotheus Pokorra <timotheus.pokorra@solidcharity.com> | 2015-06-03 12:42:48 +0200 |
commit | d12c453f26c081c8ba5417f28c6d30083f848e69 (patch) | |
tree | 4984b1bea60e3677cf81060dca84e1b7c0abed62 /app/Model/ProjectPermission.php | |
parent | 599b6624dde8cb1c1f6416ee0af530402089da4d (diff) |
normal user should not have inactive boards in board selector
fixes https://github.com/fguillot/kanboard/issues/902
Diffstat (limited to 'app/Model/ProjectPermission.php')
-rw-r--r-- | app/Model/ProjectPermission.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/ProjectPermission.php b/app/Model/ProjectPermission.php index d4f44f66..b0a09df4 100644 --- a/app/Model/ProjectPermission.php +++ b/app/Model/ProjectPermission.php @@ -290,7 +290,7 @@ class ProjectPermission extends Base } /** - * Return a list of allowed projects for a given user + * Return a list of allowed active projects for a given user * * @access public * @param integer $user_id User id @@ -302,7 +302,7 @@ class ProjectPermission extends Base return $this->project->getListByStatus(Project::ACTIVE); } - return $this->getMemberProjects($user_id); + return $this->getActiveMemberProjects($user_id); } /** |