From c75ffdde30a32d980a7bb97e4b57258264cf0f7f Mon Sep 17 00:00:00 2001 From: Dan Braghis <dan.braghis@torchbox.com> Date: Mon, 18 Jun 2018 12:27:22 +0100 Subject: [PATCH] Re-add permission check method --- opentech/apply/funds/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opentech/apply/funds/models.py b/opentech/apply/funds/models.py index 8b43dbcf5..d0676c19d 100644 --- a/opentech/apply/funds/models.py +++ b/opentech/apply/funds/models.py @@ -767,6 +767,9 @@ class ApplicationSubmission(WorkflowHelpers, BaseStreamForm, AbstractFormSubmiss return self.has_permission_to_review(user) + def has_permission_to_add_determination(self, user): + return user.is_superuser or self.lead.id == user.id + def data_and_fields(self): for stream_value in self.form_fields: try: -- GitLab