Use temporary redirects

This commit is contained in:
2019-06-03 15:06:57 +09:00
parent e11295019b
commit cf258573a8
12 changed files with 28 additions and 23 deletions

View File

@ -15,7 +15,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, "/")
}
ignoreDifferences := arn.FilterIgnoreAnimeDifferences(func(entry *arn.IgnoreAnimeDifference) bool {

View File

@ -16,7 +16,7 @@ func NoDescription(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, "/")
}
companies := arn.FilterCompanies(func(company *arn.Company) bool {