normal user should not have inactive boards in board selector

fixes https://github.com/fguillot/kanboard/issues/902
This commit is contained in:
Timotheus Pokorra 2015-06-03 12:42:48 +02:00
parent 599b6624dd
commit d12c453f26
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
/**