Do not automatically classify budgets based on "author"ship

This commit is contained in:
Yingtong Li 2020-04-19 21:06:28 +10:00
parent 3168b52479
commit 3a49607b83
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -217,7 +217,7 @@ def budget_list(request):
group = budgets_action group = budgets_action
elif request.user.groups.filter(name='Committee').exists() and state == models.BudgetState.ENDORSED: elif request.user.groups.filter(name='Committee').exists() and state == models.BudgetState.ENDORSED:
group = budgets_action 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]: if state in [models.BudgetState.DRAFT, models.BudgetState.RESUBMIT]:
group = budgets_action group = budgets_action
elif state in [models.BudgetState.AWAIT_REVIEW, models.BudgetState.ENDORSED]: elif state in [models.BudgetState.AWAIT_REVIEW, models.BudgetState.ENDORSED]: