Fix error when Treasurer attempts to edit a reimbursement claim
This commit is contained in:
parent
eb411a78a2
commit
95bc4c3f2a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user