Merge pull request #149 from CrabHo/fix-resp-code

fix: update http status code
This commit is contained in:
Laszlo Fogas 2020-11-27 11:02:31 +01:00 committed by GitHub
commit 6239b6b9b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()