We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 013c1fb commit ea1e78bCopy full SHA for ea1e78b
appointment/views_admin.py
@@ -239,7 +239,7 @@ def fetch_service_list_for_staff(request):
239
# Ensure the staff member is associated with this appointment
240
if not Appointment.objects.filter(id=appointment_id,
241
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')
+ return json_response(_("You do not have permission to access this appointment."), status_code=403)
243
else:
244
# Fetch all services for the staff member (create mode)
245
try:
0 commit comments