Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qpixel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Answers
Qpixel
Commits
8b481859
Commit
8b481859
authored
Nov 27, 2023
by
Taico Aerts
Browse files
Options
Downloads
Patches
Plain Diff
Remove email from public information
parent
c0a2e0f1
No related branches found
No related tags found
1 merge request
!77
Deploy Custom Badges
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/assets/javascripts/users.js
+2
-2
2 additions, 2 deletions
app/assets/javascripts/users.js
app/controllers/users_controller.rb
+1
-1
1 addition, 1 deletion
app/controllers/users_controller.rb
with
3 additions
and
3 deletions
app/assets/javascripts/users.js
+
2
−
2
View file @
8b481859
...
@@ -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
}
)`
}))}),
}
}
});
});
});
});
...
...
This diff is collapsed.
Click to expand it.
app/controllers/users_controller.rb
+
1
−
1
View file @
8b481859
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment