We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0fef43 commit 4bf0caeCopy full SHA for 4bf0cae
routers/api/v1/user/user.go
@@ -60,7 +60,7 @@ func Search(ctx *context.APIContext) {
60
AvatarURL: users[i].AvatarLink(),
61
FullName: markup.Sanitize(users[i].FullName),
62
}
63
- if ctx.IsSigned {
+ if ctx.IsSigned && (!users[i].KeepEmailPrivate || ctx.User.IsAdmin) {
64
results[i].Email = users[i].Email
65
66
0 commit comments