Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use other scope

Oliver Günthere997a6efc04f
diff --git a/app/components/users/profile/projects_component.rb b/app/components/users/profile/projects_component.rb
index ca439b79a34..1bdb8448763 100644
--- a/app/components/users/profile/projects_component.rb
+++ b/app/components/users/profile/projects_component.rb
@@ -43,7 +43,7 @@ module Users
# also gets applied to the Project.allowed_to parts concatenated by a UNION
# and an order inside a UNION is not allowed in postgres.
@memberships = @user.memberships
- .where.not(project_id: nil)
+ .of_any_project
.where(id: Member.visible(User.current))
.order("projects.created_at DESC")
end