fixes project duplication [fixes SCI-2486]

This commit is contained in:
zmagod 2018-06-05 09:44:03 +02:00
parent 4092e0da44
commit 2def874ffd

View file

@ -359,7 +359,7 @@ class User < ApplicationRecord
{ created_at: :desc }
end
result.where(archived: false).order(sort)
result.where(archived: false).distinct.order(sort)
end
# Finds all activities of user that is assigned to project. If user