mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 10:21:00 +00:00
Merge pull request #149 from CrabHo/fix-resp-code
fix: update http status code
This commit is contained in:
commit
6239b6b9b8
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue