From 95bc4c3f2acd5c81e9d19c5aab286711592d9c29 Mon Sep 17 00:00:00 2001 From: Yingtong Li Date: Wed, 5 Feb 2020 12:27:26 +1100 Subject: [PATCH] Fix error when Treasurer attempts to edit a reimbursement claim --- sstreasury/models.py | 4 +--- 1 file changed, 1 insertion(+), 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