mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	config option: Require sign in to view repository
This commit is contained in:
		@@ -15,7 +15,7 @@ func SignInRequire(redirect bool) martini.Handler {
 | 
			
		||||
	return func(ctx *Context) {
 | 
			
		||||
		if !ctx.IsSigned {
 | 
			
		||||
			if redirect {
 | 
			
		||||
				ctx.Redirect("/")
 | 
			
		||||
				ctx.Redirect("/user/login")
 | 
			
		||||
			}
 | 
			
		||||
			return
 | 
			
		||||
		} else if !ctx.User.IsActive && base.Service.RegisterEmailConfirm {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user