Merge pull request #1720 from jbargu/jg_sci_3375

One project is duplicated in project list [SCI-3375]
This commit is contained in:
Jure Grabnar 2019-05-06 11:43:24 +02:00 committed by GitHub
commit c866d96ea7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ class Project < ApplicationRecord
.where(
'visibility = 1 OR user_projects.user_id = :id',
id: user.id
)
).distinct
end
end)