Skip to content

Commit

Permalink
[api] fix long standing issue in the calculation of user filtered pro…
Browse files Browse the repository at this point in the history
…ject status
  • Loading branch information
coolo committed Sep 23, 2013
1 parent 012093f commit 4fe9178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/user.rb
Expand Up @@ -745,7 +745,7 @@ def user_relevant_packages_for_status
# No maintainers
packages = packages.where([
"(relationships.user_id = ?) OR "\
"(relationships.user_id is null AND project_id in (?) )", self.id, projects_ids])
"(relationships.user_id is null AND db_project_id in (?) )", self.id, projects_ids])
packages.pluck(:id)
end

Expand Down

0 comments on commit 4fe9178

Please sign in to comment.