Fix bug in liaison form that prevents Secretariat users from posting
statements on behalf of SDO liaison managers in some cases. - Legacy-Id: 4311
This commit is contained in:
parent
9b4415fe51
commit
bbeaa2d022
|
@ -425,7 +425,7 @@ class OutgoingLiaisonForm(LiaisonForm):
|
||||||
# If the from entity is one in wich the user has full privileges the to entity could be anyone
|
# If the from entity is one in wich the user has full privileges the to entity could be anyone
|
||||||
if from_code in [i[0] for i in all_entities]:
|
if from_code in [i[0] for i in all_entities]:
|
||||||
return to_code
|
return to_code
|
||||||
sdo_codes = ['sdo_%s' % i.pk for i in liaison_manager_sdos(self.person)]
|
sdo_codes = ['sdo_%s' % i.pk for i in liaison_manager_sdos(person)]
|
||||||
if to_code in sdo_codes:
|
if to_code in sdo_codes:
|
||||||
return to_code
|
return to_code
|
||||||
entity = self.get_to_entity()
|
entity = self.get_to_entity()
|
||||||
|
|
Loading…
Reference in a new issue