mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	#12, add/edit hook
This commit is contained in:
		| @@ -67,3 +67,12 @@ func Toggle(options *ToggleOptions) macaron.Handler { | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| func ApiReqToken() macaron.Handler { | ||||
| 	return func(ctx *Context) { | ||||
| 		if !ctx.IsSigned { | ||||
| 			ctx.Error(403) | ||||
| 			return | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Unknwon
					Unknwon