summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingtong Li <runassudo@yingtongli.me>2020-03-02 14:31:19 +1100
committerYingtong Li <runassudo@yingtongli.me>2020-03-02 14:31:19 +1100
commit1cd09562a92bdfd13af1fe3c5c42f4c105dac96f (patch)
tree9e9d185ee2b5bc37b5aadaa5fa858203bc8b2052
parent0dc5923429f768668a9578e4d2bb1f0a247ab07b (diff)
Allow directly marking committee returned from await review stage
-rw-r--r--sstreasury/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sstreasury/models.py b/sstreasury/models.py
index 5d0bf0d..0424706 100644
--- a/sstreasury/models.py
+++ b/sstreasury/models.py
@@ -185,12 +185,12 @@ class BudgetRevision(models.Model):
return False
if not user.groups.filter(name='Secretary').exists() and not user.groups.filter(name='Treasury').exists():
return False
- if self.state == BudgetState.ENDORSED.value or self.state == BudgetState.AWAIT_REVIEW.value or self.state == BudgetState.DRAFT.value or self.state == BudgetState.RESUBMIT.value:
+ if self.state != BudgetState.APPROVED.value:
return True
return False
def can_cmtereturn(self, user):
- if self.state != BudgetState.ENDORSED.value:
+ if self.state == BudgetState.APPROVED.value:
return False
return self.can_approve(user)
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.