summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingtong Li <runassudo@yingtongli.me>2020-02-09 22:18:44 +1100
committerYingtong Li <runassudo@yingtongli.me>2020-02-09 22:18:44 +1100
commita170d1ea89f59febd9d10ab67e2f6f9af1d885a4 (patch)
treee264336c6683819ed037635dec1ca731c7533c17
parent16f859cb6e2b513a334193f92b3a9689f5285596 (diff)
Disallow Treasurer to approve claim when already approved
-rw-r--r--sstreasury/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sstreasury/models.py b/sstreasury/models.py
index b75a3b0..795d8ef 100644
--- a/sstreasury/models.py
+++ b/sstreasury/models.py
@@ -293,7 +293,7 @@ class ReimbursementClaim(models.Model):
return False
if not user.groups.filter(name='Treasury').exists():
return False
- if self.state != ClaimState.PAID.value:
+ if self.state == ClaimState.DRAFT.value or self.state == ClaimState.RESUBMIT.value or self.state == ClaimState.AWAIT_REVIEW.value:
return True
return False
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.