Skip to content
Snippets Groups Projects
Commit 8b481859 authored by Taico Aerts's avatar Taico Aerts
Browse files

Remove email from public information

parent c0a2e0f1
No related branches found
No related tags found
1 merge request!77Deploy Custom Badges
...@@ -91,7 +91,7 @@ $(() => { ...@@ -91,7 +91,7 @@ $(() => {
search: params.term search: params.term
}; };
}, },
processResults: data => ({results: data.map(c => ({id: c.id, text: `${c.username} (${c.email})`}))}), processResults: data => ({results: data.map(c => ({id: c.id, text: `${c.username} (${c.id})`}))}),
} }
}); });
}); });
......
...@@ -35,7 +35,7 @@ class UsersController < ApplicationController ...@@ -35,7 +35,7 @@ class UsersController < ApplicationController
@users = base.where.not(deleted: true).where.not(community_users: { deleted: true }) @users = base.where.not(deleted: true).where.not(community_users: { deleted: true })
respond_to do |format| respond_to do |format|
format.json do format.json do
render json: @users, only: %i[id username email] render json: @users, only: %i[id username]
end end
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment