Skip to content

Commit

Permalink
feat: add flag to manage staff see in catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
johanseto committed Sep 12, 2024
1 parent 1fbf18c commit 2c0e2ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lms/djangoapps/courseware/access.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@ def can_see_in_catalog():
"""
return (
_has_catalog_visibility(courselike, CATALOG_VISIBILITY_CATALOG_AND_ABOUT)
or (
_has_staff_access_to_descriptor(user, courselike, courselike.id)
and getattr(settings, "STAFF_CAN_SEE_IN_CATALOG", False)
)
)

@function_trace('can_see_about_page')
Expand Down

0 comments on commit 2c0e2ff

Please sign in to comment.