Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
urchinpro committed Jan 13, 2025
1 parent f4bec43 commit 713ec31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/researches/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def researches_update(request):
f.visibility = field.get("visibility", "")
su = request.user.is_superuser or request.user.doctorprofile.all_hospitals_users_control
if field_data.field_type != field.get("field_type", 0) and not su:
if field_data.field_type in [13, 14, 0] and field.get("field_type", 0) in [13, 14, 0]:
if field_data.field_type in [0, 13, 14] and field.get("field_type", 0) in [0, 13, 14]:
pass
else:
return JsonResponse(response)
Expand Down

0 comments on commit 713ec31

Please sign in to comment.