From 713ec31a470ab640b798f1c9a650a80aa825c81c Mon Sep 17 00:00:00 2001 From: sergei kasianenko Date: Mon, 13 Jan 2025 21:15:25 +0800 Subject: [PATCH] fix --- api/researches/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/researches/views.py b/api/researches/views.py index 2e7039fa64..6c12a98753 100644 --- a/api/researches/views.py +++ b/api/researches/views.py @@ -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)