Merged [7236] from rcross@amsl.com: Ticket #1308: fix Liaison Add CSRF token error and missing Post and Send button.

- Legacy-Id: 7246
Note: SVN reference [7236] has been migrated to Git commit ba6d31fd27
This commit is contained in:
Henrik Levkowetz 2014-02-16 16:58:54 +00:00
parent 5d1bdde730
commit f59983ccd1

View file

@ -310,6 +310,8 @@ class IncomingLiaisonForm(LiaisonForm):
self.fields['organization'].choices = self.hm.get_all_incoming_entities()
def get_post_only(self):
# Temporary fix - newer django plumbs when forms are validated differently - fail permissive for now
return False
from_entity = self.get_from_entity()
if is_secretariat(self.user) or Role.objects.filter(person=self.person, group=from_entity.obj, name="auth"):
return False