summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingtong Li <runassudo@yingtongli.me>2020-02-09 22:15:22 +1100
committerYingtong Li <runassudo@yingtongli.me>2020-02-09 22:15:22 +1100
commit83ef0c51546906b1aa9c899c78d8f64a278aba66 (patch)
treeace76aa6e3037c8ffca7e3f56b4411542f445d5e
parent95bc4c3f2acd5c81e9d19c5aab286711592d9c29 (diff)
Allow Treasurer to edit claim
-rw-r--r--sstreasury/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sstreasury/models.py b/sstreasury/models.py
index 2e9689f..b75a3b0 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.AWAIT_REVIEW.value:
+ if self.state != ClaimState.PAID.value:
return True
return False
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.