Use temporary redirects
This commit is contained in:
@ -19,7 +19,7 @@ func Get(ctx aero.Context) error {
|
||||
user := utils.GetUser(ctx)
|
||||
|
||||
if user == nil || (user.Role != "admin" && user.Role != "editor") {
|
||||
return ctx.Redirect(http.StatusFound, "/")
|
||||
return ctx.Redirect(http.StatusTemporaryRedirect, "/")
|
||||
}
|
||||
|
||||
// // CPU
|
||||
|
Reference in New Issue
Block a user