Allow Treasurer to edit claim

This commit is contained in:
Yingtong Li 2020-02-09 22:15:22 +11:00
parent 95bc4c3f2a
commit 83ef0c5154
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -293,7 +293,7 @@ class ReimbursementClaim(models.Model):
return False return False
if not user.groups.filter(name='Treasury').exists(): if not user.groups.filter(name='Treasury').exists():
return False return False
if self.state == ClaimState.AWAIT_REVIEW.value: if self.state != ClaimState.PAID.value:
return True return True
return False return False