fix: update http status code

This commit is contained in:
CrabHo 2020-11-27 11:29:07 +08:00
parent 61a0018f35
commit ef22a76dfd

View file

@ -91,7 +91,7 @@ func MustAdmin() gin.HandlerFunc {
c.String(401, "User not authorized")
c.Abort()
case user.Admin == false:
c.String(413, "User not authorized")
c.String(403, "User not authorized")
c.Abort()
default:
c.Next()