mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Merge pull request #5826 from G-Chubinidze/gc_SCI_8820
Error at inviting user to SciNote [SCI-8820]
This commit is contained in:
commit
b0f45713cf
1 changed files with 1 additions and 2 deletions
|
@ -150,8 +150,7 @@ module Users
|
|||
.distinct
|
||||
teams = teams.where_attributes_like('teams.name', params[:query]) if params[:query].present?
|
||||
|
||||
teams.select { |team| can_invite_team_users?(team) }
|
||||
|
||||
teams = teams.select { |team| can_invite_team_users?(team) }
|
||||
render json: teams.map { |t| { value: t.id, label: escape_input(t.name) } }.to_json
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue