Allow committee to view submitted budgets
This commit is contained in:
parent
e69efdc816
commit
17637a4cfd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user