Skip to content

Commit

Permalink
Fix the organization's candidate in forms
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Nov 20, 2024
1 parent 7d6a310 commit 9a7a552
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/hub/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ def _set_fields_permissions(self):
# If registration is closed, updating the organization/candidate shouldn't be possible
# it should be possible if they have a registered candidate and the organization editing is enabled
if not (
self.instance.candidate
hasattr(self.instance, "candidate")
and self.instance.candidate
and self.instance.candidate.is_proposed
and FeatureFlag.flag_enabled(FLAG_CHOICES.enable_org_editing)
) and not FeatureFlag.flag_enabled(FLAG_CHOICES.enable_candidate_registration):
Expand Down

0 comments on commit 9a7a552

Please sign in to comment.