@@ -84,7 +84,7 @@ func Toggle(options *ToggleOptions) macaron.Handler {
if options.AdminRequired {
if !c.User.IsAdmin {
- c.Error(403)
+ c.Redirect(setting.AppSubURL + "/")
return
}
c.Data["PageIsAdmin"] = true