mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-01 10:40:53 +00:00
fix: update http status code
This commit is contained in:
@@ -91,7 +91,7 @@ func MustAdmin() gin.HandlerFunc {
|
|||||||
c.String(401, "User not authorized")
|
c.String(401, "User not authorized")
|
||||||
c.Abort()
|
c.Abort()
|
||||||
case user.Admin == false:
|
case user.Admin == false:
|
||||||
c.String(413, "User not authorized")
|
c.String(403, "User not authorized")
|
||||||
c.Abort()
|
c.Abort()
|
||||||
default:
|
default:
|
||||||
c.Next()
|
c.Next()
|
||||||
|
Reference in New Issue
Block a user