Skip to content

Commit a3a3d21

Browse files
authored
fix: don't limit from_contact for incoming liaison statements (ietf-tools#9773)
1 parent 9d7829d commit a3a3d21

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

ietf/liaisons/forms.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -495,14 +495,18 @@ def set_from_fields(self):
495495
self.fields['from_groups'].initial = qs
496496

497497
# Note that the IAB chair currently doesn't get to work with incoming liaison statements
498-
if not (
499-
has_role(self.user, "Secretariat")
500-
or has_role(self.user, "Liaison Coordinator")
501-
):
502-
self.fields["from_contact"].initial = (
503-
self.person.role_set.filter(group=qs[0]).first().email.formatted_email()
504-
)
505-
self.fields["from_contact"].widget.attrs["disabled"] = True
498+
499+
# Removing this block at the request of the IAB - as a workaround until the new liaison tool is
500+
# create, anyone with access to the form can set any from_contact value
501+
#
502+
# if not (
503+
# has_role(self.user, "Secretariat")
504+
# or has_role(self.user, "Liaison Coordinator")
505+
# ):
506+
# self.fields["from_contact"].initial = (
507+
# self.person.role_set.filter(group=qs[0]).first().email.formatted_email()
508+
# )
509+
# self.fields["from_contact"].widget.attrs["disabled"] = True
506510

507511
def set_to_fields(self):
508512
'''Set to_groups and to_contacts options and initial value based on user

0 commit comments

Comments
 (0)