Skip to content

Commit

Permalink
Update: correct auth check for surrender
Browse files Browse the repository at this point in the history
  • Loading branch information
awf-dbca committed Oct 31, 2024
1 parent 4f4b49d commit 3115caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mooringlicensing/components/approvals/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def approval_surrender(self,request,details):
'details': details.get('surrender_details'),
}

if not (self.applicant_obj == request.user or not request.user in self.allowed_assessors):
if not (self.applicant_obj == request.user or request.user in self.allowed_assessors):
raise ValidationError("User not authorised to surrender approval")

today = timezone.now().date()
Expand Down

0 comments on commit 3115caa

Please sign in to comment.