Skip to content

Commit

Permalink
Fix permissions for revoking candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Nov 6, 2024
1 parent fbf68c2 commit 91f5aff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/hub/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,9 +867,6 @@ def candidate_vote(request, pk):

@login_required
def candidate_revoke(request, pk):
if not request.user.has_perm("hub.delete_candidate"):
raise PermissionDenied

if not FeatureFlag.flag_enabled("enable_candidate_supporting"):
raise PermissionDenied

Expand Down

0 comments on commit 91f5aff

Please sign in to comment.