Also allow Treasurer to mark committee actions
This commit is contained in:
parent
4e1e9a611e
commit
6df1fe78a4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user