Skip to content

Commit

Permalink
Remove User requirement in Protect
Browse files Browse the repository at this point in the history
  • Loading branch information
TimVosch committed Apr 29, 2024
1 parent 4ef94c2 commit 3fd40e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/auth/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ func Protect() func(http.Handler) http.Handler {
web.HTTPError(w, ErrUnauthorized)
return
}
if _, err := GetUser(r.Context()); err != nil {
web.HTTPError(w, ErrUnauthorized)
return
}
//if _, err := GetUser(r.Context()); err != nil {
// web.HTTPError(w, ErrUnauthorized)
// return
//}
if _, err := GetPermissions(r.Context()); err != nil {
web.HTTPError(w, ErrUnauthorized)
return
Expand Down

0 comments on commit 3fd40e2

Please sign in to comment.