summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingtong Li <runassudo@yingtongli.me>2020-02-05 12:27:26 +1100
committerYingtong Li <runassudo@yingtongli.me>2020-02-05 12:27:26 +1100
commit95bc4c3f2acd5c81e9d19c5aab286711592d9c29 (patch)
treed69beee3a498d646ea0bccea93ed52f7fd4a3a54
parenteb411a78a25deac4f6505b99428c83ad4e7fc30d (diff)
Fix error when Treasurer attempts to edit a reimbursement claim
-rw-r--r--sstreasury/models.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sstreasury/models.py b/sstreasury/models.py
index e29245c..2e9689f 100644
--- a/sstreasury/models.py
+++ b/sstreasury/models.py
@@ -1,5 +1,5 @@
# Society Self-Service
-# Copyright © 2018-2019 Yingtong Li (RunasSudo)
+# Copyright © 2018–2020 Yingtong Li (RunasSudo)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
@@ -268,8 +268,6 @@ class ReimbursementClaim(models.Model):
# Otherwise the submitter or Treasurer may edit
if user == self.author:
return True
- if user in self.contributors.all():
- return True
if user.groups.filter(name='Treasury').exists():
return True
Contact (issues, pull requests, etc.) at git@yingtongli.me. Generated by cgit.