summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingtong Li <runassudo@yingtongli.me>2020-04-19 21:06:28 +1000
committerYingtong Li <runassudo@yingtongli.me>2020-04-19 21:06:28 +1000
commit3a49607b83c694977a4946cdfe06ed61df9a9b7a (patch)
treefc46219242fbaf017f8af28e77d8cb1f4a5b4c41
parent3168b524791f5258876fd0c6debeda9475fae932 (diff)
Do not automatically classify budgets based on "author"ship
-rw-r--r--sstreasury/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sstreasury/views.py b/sstreasury/views.py
index 87d5903..243433f 100644
--- a/sstreasury/views.py
+++ b/sstreasury/views.py
@@ -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]:
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.