mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
Less precise election results
This commit is contained in:
@ -472,7 +472,7 @@ class CandidatureDeleteView(CanEditMixin, DeleteView):
|
||||
def dispatch(self, request, *arg, **kwargs):
|
||||
self.object = self.get_object()
|
||||
self.election = self.object.role.election
|
||||
if not self.election.can_candidate:
|
||||
if not self.election.can_candidate or not self.election.is_vote_editable:
|
||||
raise PermissionDenied
|
||||
return super(CandidatureDeleteView, self).dispatch(request, *arg, **kwargs)
|
||||
|
||||
|
Reference in New Issue
Block a user