Do not automatically classify budgets based on "author"ship
This commit is contained in:
parent
3168b52479
commit
3a49607b83
@ -217,7 +217,7 @@ def budget_list(request):
|
||||
group = budgets_action
|
||||
elif request.user.groups.filter(name='Committee').exists() and state == models.BudgetState.ENDORSED:
|
||||
group = budgets_action
|
||||
elif request.user == revision.author or request.user in revision.contributors.all():
|
||||
elif request.user in revision.contributors.all():
|
||||
if state in [models.BudgetState.DRAFT, models.BudgetState.RESUBMIT]:
|
||||
group = budgets_action
|
||||
elif state in [models.BudgetState.AWAIT_REVIEW, models.BudgetState.ENDORSED]:
|
||||
|
Loading…
Reference in New Issue
Block a user