mirror of
https://github.com/go-gitea/gitea
synced 2025-07-08 03:27:19 +00:00
Fix install bugs
This commit is contained in:
@ -21,6 +21,11 @@ type ToggleOptions struct {
|
||||
|
||||
func Toggle(options *ToggleOptions) martini.Handler {
|
||||
return func(ctx *Context) {
|
||||
if !base.InstallLock {
|
||||
ctx.Redirect("/install")
|
||||
return
|
||||
}
|
||||
|
||||
if options.SignOutRequire && ctx.IsSigned && ctx.Req.RequestURI != "/" {
|
||||
ctx.Redirect("/")
|
||||
return
|
||||
|
Reference in New Issue
Block a user