mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Move install pages out of main macaron routes (#13195)
* Move install pages out of main macaron loop Signed-off-by: Andrew Thornton <art27@cantab.net> * Update templates/post-install.tmpl Co-authored-by: Lauris BH <lauris@nix.lv> * remove prefetch Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		@@ -26,12 +26,6 @@ type ToggleOptions struct {
 | 
			
		||||
// Toggle returns toggle options as middleware
 | 
			
		||||
func Toggle(options *ToggleOptions) macaron.Handler {
 | 
			
		||||
	return func(ctx *Context) {
 | 
			
		||||
		// Cannot view any page before installation.
 | 
			
		||||
		if !setting.InstallLock {
 | 
			
		||||
			ctx.Redirect(setting.AppSubURL + "/install")
 | 
			
		||||
			return
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		isAPIPath := auth.IsAPIPath(ctx.Req.URL.Path)
 | 
			
		||||
 | 
			
		||||
		// Check prohibit login users.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user