Also allow Treasurer to mark committee actions

This commit is contained in:
Yingtong Li 2020-01-25 23:19:20 +11:00
parent 4e1e9a611e
commit 6df1fe78a4
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -183,7 +183,7 @@ class BudgetRevision(models.Model):
def can_approve(self, user): def can_approve(self, user):
if not self.can_edit(user): if not self.can_edit(user):
return False 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 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.ENDORSED.value or self.state == BudgetState.AWAIT_REVIEW.value or self.state == BudgetState.DRAFT.value or self.state == BudgetState.RESUBMIT.value:
return True return True