Allow committee to view submitted budgets

This commit is contained in:
Yingtong Li 2020-02-27 17:55:56 +11:00
parent e69efdc816
commit 17637a4cfd
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -121,7 +121,7 @@ class BudgetRevision(models.Model):
return True return True
if user.groups.filter(name='Treasury').exists(): if user.groups.filter(name='Treasury').exists():
return True return True
if (self.state == BudgetState.ENDORSED.value or self.state == BudgetState.APPROVED.value) and user.groups.filter(name='Committee').exists(): if (self.state == BudgetState.AWAIT_REVIEW.value or self.state == BudgetState.ENDORSED.value or self.state == BudgetState.APPROVED.value) and user.groups.filter(name='Committee').exists():
return True return True
return False return False