Skip to content

Commit

Permalink
fix: wrong permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed Jul 27, 2024
1 parent 9046d57 commit 663bb3d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions backend/internal/handlers/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ func (h *Handler) HandleRequestSite(w http.ResponseWriter, r *http.Request) {
http.Error(w, "User not found", http.StatusNotFound)
return
}
if user.Role == "admin" {
http.Error(w, err.Error(), http.StatusUnauthorized)
return
}
// Parse the request body
err = json.NewDecoder(r.Body).Decode(&redirect)
if err != nil {
Expand Down

0 comments on commit 663bb3d

Please sign in to comment.