Skip to content

Commit

Permalink
Merge pull request #35131 from dimagi/em/location-lineage-access
Browse files Browse the repository at this point in the history
Check can_edit_or_view_location on location_lineage
  • Loading branch information
nospame authored Sep 17, 2024
2 parents 6b4be3f + 9e8705b commit 6d13acb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions corehq/apps/locations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ def delete_location(request, domain, loc_id):
})


@can_edit_or_view_location
@location_safe
def location_lineage(request, domain, loc_id):
lineage = SQLLocation.objects.get_locations([loc_id])[0].lineage
Expand Down

0 comments on commit 6d13acb

Please sign in to comment.