Disallow Treasurer to approve claim when already approved
This commit is contained in:
parent
16f859cb6e
commit
a170d1ea89
@ -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.PAID.value:
|
if self.state == ClaimState.DRAFT.value or self.state == ClaimState.RESUBMIT.value or self.state == ClaimState.AWAIT_REVIEW.value:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user