Skip to content

Commit b1da0c2

Browse files
committed
fix: minor fixes
1 parent 9a818cc commit b1da0c2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/auth/middleware.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ func (a *Auth) basicAuth(h http.HandlerFunc) http.HandlerFunc {
200200
if reqPermission.HasCategory(*reqCategory) {
201201
authenticated = true
202202
} else {
203-
errorMsg = "credential is not allowed to access" + *reqCategory.String()
203+
str := (*reqCategory).String()
204+
errorMsg = "credential is not allowed to access" + str
204205
}
205206

206207
// cache the permission

0 commit comments

Comments
 (0)