summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingtong Li <runassudo@yingtongli.me>2020-01-25 23:19:20 +1100
committerYingtong Li <runassudo@yingtongli.me>2020-01-25 23:19:20 +1100
commit6df1fe78a4eb5c076e9af9c31e43b3e0a1a29dea (patch)
treef80d181ccf16acf9e6b883ab6a79b1f7120f0f5f
parent4e1e9a611ed697a9da13e95d438388c5ae5abe45 (diff)
Also allow Treasurer to mark committee actions
-rw-r--r--sstreasury/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sstreasury/models.py b/sstreasury/models.py
index 6d7bde5..3292699 100644
--- a/sstreasury/models.py
+++ b/sstreasury/models.py
@@ -183,7 +183,7 @@ class BudgetRevision(models.Model):
def can_approve(self, user):
if not self.can_edit(user):
return False
- if not user.groups.filter(name='Secretary').exists():
+ 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:
return True
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.