diff --git a/contracts/forms.py b/contracts/forms.py index 98a03e60fbeb0c057c0a60e40bbac903c6304754..166f541036d6b474e346dd1705926327cdddd94f 100644 --- a/contracts/forms.py +++ b/contracts/forms.py @@ -65,7 +65,7 @@ class ContractAdminForm(forms.ModelForm): allowed_choices.append((choice_key, choice_label)) if self.instance.status == Contract.StatusTypes.APPROVED: - if self.current_user.has_perm("contract.approve"): + if self.current_user.has_perm("contracts.approve"): if choice_key == Contract.StatusTypes.WORK_IN_PROGRESS: allowed_choices.append( ( @@ -76,7 +76,7 @@ class ContractAdminForm(forms.ModelForm): continue if self.instance.status == Contract.StatusTypes.TO_BE_APPROVED: - if self.current_user.has_perm("contract.approve"): + if self.current_user.has_perm("contracts.approve"): if choice_key in ( Contract.StatusTypes.APPROVED, Contract.StatusTypes.REJECTED,