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