diff --git a/app/models/project.rb b/app/models/project.rb index 2d5eedf3c..d0dc5c557 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -47,7 +47,7 @@ class Project < ApplicationRecord .where( 'visibility = 1 OR user_projects.user_id = :id', id: user.id - ) + ).distinct end end)