Skip to content

Commit ea1e78b

Browse files
committed
Revert json response message
1 parent 013c1fb commit ea1e78b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appointment/views_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def fetch_service_list_for_staff(request):
239239
# Ensure the staff member is associated with this appointment
240240
if not Appointment.objects.filter(id=appointment_id,
241241
appointment_request__staff_member=staff_member).exists():
242-
return handle_unauthorized_response(request, _("You do not have permission to access this appointment."), response_type='html')
242+
return json_response(_("You do not have permission to access this appointment."), status_code=403)
243243
else:
244244
# Fetch all services for the staff member (create mode)
245245
try:

0 commit comments

Comments
 (0)