Skip to content

Commit e601867

Browse files
committed
PR comment - improved documentation
1 parent 770e712 commit e601867

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/src/fhir_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ def update_immunization(
151151

152152
vaccination_type = get_vaccine_type(immunization)
153153

154-
# If the user is updating the vaccination_type, they must have permissions for both the new and old type
154+
# If the user is updating the resource vaccination_type, they must have permissions for both the existing and
155+
# new type. In most cases it will be the same, but it is possible for users to update the vacc type
155156
if not self.authoriser.authorise(supplier_system, ApiOperationCode.UPDATE,
156157
{vaccination_type, existing_resource_vacc_type}):
157158
raise UnauthorizedVaxError()

0 commit comments

Comments
 (0)