mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
fixes user duplication [fixes SCI-344]
This commit is contained in:
parent
6879521a75
commit
da2b9ccf82
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class Project < ActiveRecord::Base
|
|||
.joins("INNER JOIN user_organizations ON users.id = user_organizations.user_id ")
|
||||
.where("user_organizations.organization_id = ?", organization)
|
||||
.where.not(confirmed_at: nil)
|
||||
.where("users.id NOT IN (?)", UserProject.where(project: self).select(:id).distinct)
|
||||
.where("users.id NOT IN (?)", UserProject.where(project: self).select(:user_id).distinct)
|
||||
end
|
||||
|
||||
def user_role(user)
|
||||
|
|
Loading…
Reference in a new issue