Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lms/djangoapps/courseware/access.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
get_pre_requisite_courses_not_completed,
is_prerequisite_courses_enabled
)
from xmodule.course_block import CATALOG_VISIBILITY_ABOUT, CATALOG_VISIBILITY_CATALOG_AND_ABOUT, CourseBlock # lint-amnesty, pylint: disable=wrong-import-order
from xmodule.course_block import CATALOG_VISIBILITY_ABOUT, CATALOG_VISIBILITY_CATALOG_AND_ABOUT, CATALOG_VISIBILITY_NONE, CourseBlock # lint-amnesty, pylint: disable=wrong-import-order
from xmodule.error_block import ErrorBlock # lint-amnesty, pylint: disable=wrong-import-order
from xmodule.partitions.partitions import NoSuchUserPartitionError, NoSuchUserPartitionGroupError # lint-amnesty, pylint: disable=wrong-import-order

Expand Down Expand Up @@ -395,6 +395,7 @@ def can_see_in_catalog():
return (
_has_catalog_visibility(courselike, CATALOG_VISIBILITY_CATALOG_AND_ABOUT)
or _has_staff_access_to_block(user, courselike, courselike.id)
or (can_load() and _has_catalog_visibility(courselike, CATALOG_VISIBILITY_NONE))
)

@function_trace('can_see_about_page')
Expand All @@ -408,6 +409,7 @@ def can_see_about_page():
_has_catalog_visibility(courselike, CATALOG_VISIBILITY_CATALOG_AND_ABOUT)
or _has_catalog_visibility(courselike, CATALOG_VISIBILITY_ABOUT)
or _has_staff_access_to_block(user, courselike, courselike.id)
or (can_load() and _has_catalog_visibility(courselike, CATALOG_VISIBILITY_NONE))
)

checkers = {
Expand Down
Loading