We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a818cc commit b1da0c2Copy full SHA for b1da0c2
1 file changed
plugins/auth/middleware.go
@@ -200,7 +200,8 @@ func (a *Auth) basicAuth(h http.HandlerFunc) http.HandlerFunc {
200
if reqPermission.HasCategory(*reqCategory) {
201
authenticated = true
202
} else {
203
- errorMsg = "credential is not allowed to access" + *reqCategory.String()
+ str := (*reqCategory).String()
204
+ errorMsg = "credential is not allowed to access" + str
205
}
206
207
// cache the permission
0 commit comments