mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	#1127: hide user e-mail when API caller isn't signed in
This commit is contained in:
		@@ -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