File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments