Fix install bugs

This commit is contained in:
Unknown committed 2014-03-30 11:58:21 -04:00
1 parent 9f91dee53f
commit 3698431fc1
2 files changed
+19

No files matched your search

+5
View File
@@ -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