Fix error when Treasurer attempts to edit a reimbursement claim

This commit is contained in:
Yingtong Li 2020-02-05 12:27:26 +11:00
parent eb411a78a2
commit 95bc4c3f2a
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
1 changed files with 1 additions and 3 deletions

View File

@ -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