Skip to content

Commit d676c60

Browse files
committed
Learnpath: Fix parameter allow_teachers_to_access_blocked_lp_by_prerequisite to work for coaches in session - refs BT#22037
1 parent f2f7262 commit d676c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/lp/learnpath.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4391,7 +4391,7 @@ public function prerequisites_match($itemId = null)
43914391
if (api_is_allowed_to_edit() ||
43924392
api_is_platform_admin(true) ||
43934393
api_is_drh() ||
4394-
api_is_coach(api_get_session_id(), api_get_course_int_id())
4394+
api_is_coach(api_get_session_id(), api_get_course_int_id(), false)
43954395
) {
43964396
return true;
43974397
}

0 commit comments

Comments
 (0)