Skip to content

Commit

Permalink
Merge branch 'develop' into constructor-company-inn-search
Browse files Browse the repository at this point in the history
  • Loading branch information
urchinpro authored Nov 2, 2024
2 parents 8e733ab + bae2d0e commit 6886f85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/patients/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from django.contrib.auth.decorators import login_required
from django.core.validators import validate_email

from api.models import Application
from api.patients.common_func import get_card_control_param
from ecp_integration.integration import search_patient_ecp_by_person_id
from laboratory.decorators import group_required
Expand Down Expand Up @@ -345,7 +346,7 @@ def sync_i(ind_local: Individual, client: Client):

if not inc_archive:
cards = cards.filter(is_archive=False)
if request.user.doctorprofile.hospital.strict_data_ownership:
if not isinstance(request.user, Application) and request.user.doctorprofile.hospital.strict_data_ownership:
cards = cards.filter(owner=request.user.doctorprofile.hospital)
row: Card
for row in (
Expand Down

0 comments on commit 6886f85

Please sign in to comment.