Skip to content

Commit b2e9ddf

Browse files
committed
fixup! feat: add authz permission to search_reindex endpoint
1 parent a63b80c commit b2e9ddf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

common/djangoapps/student/auth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ def _has_content_creator_access(user, org):
256256
"""
257257
if settings.FEATURES.get('DISABLE_COURSE_CREATION', False):
258258
return False
259-
org_scope_key = f"course-v1:{org}+*"
259+
# Using Org scope. e.g. "course-v1:{org}+*"
260+
org_scope_key = authz_api.OrgCourseOverviewGlobData.build_external_key(org)
260261

261262
return authz_api.is_user_allowed(
262263
user.username,

0 commit comments

Comments
 (0)