user API: allow to disable writes ...

... even if the user has permissions for these actions
This commit is contained in:
Nicola Murino
2021-07-23 21:41:02 +02:00
parent 85a47810ff
commit 83c7453957
7 changed files with 97 additions and 13 deletions

View File

@@ -123,7 +123,6 @@ func jwtAuthenticatorWebClient(next http.Handler) http.Handler {
})
}
//nolint:unparam
func checkHTTPUserPerm(perm string) func(next http.Handler) http.Handler {
return func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {