Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

normal user should not have inactive boards in board selector #903

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/Model/ProjectPermission.php
Expand Up @@ -290,7 +290,7 @@ public function filterProjects(array $projects, $user_id, $filter = 'isUserAllow
}

/**
* 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
Expand All @@ -302,7 +302,7 @@ public function getAllowedProjects($user_id)
return $this->project->getListByStatus(Project::ACTIVE);
}

return $this->getMemberProjects($user_id);
return $this->getActiveMemberProjects($user_id);
}

/**
Expand Down