fix: respect target page restrictions during body section navigation
This commit is contained in:
@@ -97,6 +97,8 @@ def _body_navigator(db, *, course_version_id, project_id, category):
|
||||
return None
|
||||
|
||||
def navigate(target):
|
||||
if "body" not in target.get("allowed_page_types", ["body"]):
|
||||
return []
|
||||
label = normalize_heading(target.get("label") or "")
|
||||
if not label:
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user