redirect to /login
This commit is contained in:
parent
2f71ed5d29
commit
67ad07f3f4
@ -104,5 +104,7 @@ func BlacklistHandler(ctx *gin.Context) {
|
|||||||
"userNotFound": userNotFound,
|
"userNotFound": userNotFound,
|
||||||
"isStaff": isStaff,
|
"isStaff": isStaff,
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
ctx.Redirect(302, "/login")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -59,5 +59,7 @@ func BlacklistRemoveHandler(ctx *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ctx.Redirect(302, fmt.Sprintf("/manage/%s/blacklist", guildIdStr))
|
ctx.Redirect(302, fmt.Sprintf("/manage/%s/blacklist", guildIdStr))
|
||||||
|
} else {
|
||||||
|
ctx.Redirect(302, "/login")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -140,5 +140,7 @@ func PanelHandler(ctx *gin.Context) {
|
|||||||
"created": ctx.Query("created") == "true",
|
"created": ctx.Query("created") == "true",
|
||||||
"metQuota": ctx.Query("metQuota") == "true",
|
"metQuota": ctx.Query("metQuota") == "true",
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
ctx.Redirect(302, "/login")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,6 +76,8 @@ func SendMessage(ctx *gin.Context) {
|
|||||||
Content: content,
|
Content: content,
|
||||||
}, nil)
|
}, nil)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
ctx.Redirect(302, "/login")
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.Redirect(301, ctx.Request.URL.String())
|
ctx.Redirect(301, ctx.Request.URL.String())
|
||||||
|
@ -105,5 +105,7 @@ func TicketListHandler(ctx *gin.Context) {
|
|||||||
"baseUrl": config.Conf.Server.BaseUrl,
|
"baseUrl": config.Conf.Server.BaseUrl,
|
||||||
"tickets": ticketsFormatted,
|
"tickets": ticketsFormatted,
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
ctx.Redirect(302, "/login")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -127,5 +127,7 @@ func TicketViewHandler(ctx *gin.Context) {
|
|||||||
"include_mock": true,
|
"include_mock": true,
|
||||||
"premium": <-premium,
|
"premium": <-premium,
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
ctx.Redirect(302, "/login")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -82,5 +82,7 @@ func LogViewHandler(ctx *gin.Context) {
|
|||||||
|
|
||||||
ctx.String(200, string(content))
|
ctx.String(200, string(content))
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
ctx.Redirect(302, "/login")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user