Merge pull request #2536 from owncloud/public-share-auth-middleware

add public share auth middleware
This commit is contained in:
Willy Kloucek
2021-10-18 07:54:11 +02:00
committed by GitHub
8 changed files with 93 additions and 15 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ func ExtractAccountUUID(opts ...account.Option) func(http.Handler) http.Handler
opt.Logger.Error().Err(err)
return
}
if ok, err := scope.VerifyScope(tokenScope, r); err != nil || !ok {
if ok, err := scope.VerifyScope(r.Context(), tokenScope, r); err != nil || !ok {
opt.Logger.Error().Err(err).Msg("verifying scope failed")
return
}