mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 19:47:07 +09:00
#1127: hide user e-mail when API caller isn't signed in
This commit is contained in:
1 parent
ccf17a6ecb
commit
4cbbaefd82
2 files changed
+6
No files matched your search
@@ -69,6 +69,7 @@ func Toggle(options *ToggleOptions) macaron.Handler {
|
||||
}
|
||||
}
|
||||
|
||||
// Contexter middleware already checks token for user sign in process.
|
||||
func ApiReqToken() macaron.Handler {
|
||||
return func(ctx *Context) {
|
||||
if !ctx.IsSigned {
|
||||
|
||||
Reference in new issue
Block a user