Skip to content

feat: authorize advanced settings endpoints via openedx-authz when fl…#38009

Open
wgu-taylor-payne wants to merge 2 commits intoopenedx:masterfrom
WGU-Open-edX:authz-authoring-advanced-settings
Open

feat: authorize advanced settings endpoints via openedx-authz when fl…#38009
wgu-taylor-payne wants to merge 2 commits intoopenedx:masterfrom
WGU-Open-edX:authz-authoring-advanced-settings

Conversation

@wgu-taylor-payne
Copy link
Contributor

Description

Add the option to authorize with openedx-authz for the advanced settings related endpoints. If the AUTHZ_COURSE_AUTHORING_FLAG is enabled for the course, then the system will do the permission check against openedx-authz.

This functionality depends on features introduced to openedx-authz in version 0.21.0.

Supporting information

Resolves #37926.

Testing instructions

To run the relevant automated tests:

pytest --ds=cms.envs.tutor.test \
"cms/djangoapps/contentstore/rest_api/v0/tests/test_advanced_settings.py::AdvancedSettingsAuthzTest" \
"cms/djangoapps/contentstore/rest_api/v1/views/tests/test_proctoring.py::CourseProctoringErrorsViewTest"

To manually test:

  1. Ensure that the new policy is loaded by running ./manage.py cms load_policies
  2. Ensure that the AUTHZ_COURSE_AUTHORING_FLAG flag is enabled for the given course (see feat: Add Waffle flag for AuthZ for Course Authoring #37985).
  3. If staff or admin, you should be able to access the advanced settings page for any course (e.g. http://apps.local.openedx.io:2001/authoring/course/course-v1:OpenedX+DemoX+DemoCourse/settings/advanced)
  4. If not staff or admin, then you will have to assign the COURSE_STAFF role to the user with the scope being the course you are testing access for. Afterwards the user should have access to the advanced settings page.

Deadline

Verawood release

@openedx-webhooks openedx-webhooks added open-source-contribution PR author is not from Axim or 2U core contributor PR author is a Core Contributor (who may or may not have write access to this repo). labels Feb 13, 2026
@openedx-webhooks
Copy link

Thanks for the pull request, @wgu-taylor-payne!

This repository is currently maintained by @openedx/wg-maintenance-openedx-platform.

Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review.

🔘 Get product approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

Details
Where can I find more information?

If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:

When can I expect my changes to be merged?

Our goal is to get community contributions seen and reviewed as efficiently as possible.

However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@github-project-automation github-project-automation bot moved this to Needs Triage in Contributions Feb 13, 2026
@wgu-taylor-payne wgu-taylor-payne added the mao-onboarding Reviewing this will help onboard devs from an Axim mission-aligned organization (MAO). label Feb 13, 2026
@wgu-taylor-payne wgu-taylor-payne force-pushed the authz-authoring-advanced-settings branch from 6861d86 to 007be04 Compare February 13, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core contributor PR author is a Core Contributor (who may or may not have write access to this repo). mao-onboarding Reviewing this will help onboard devs from an Axim mission-aligned organization (MAO). open-source-contribution PR author is not from Axim or 2U

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

Task - RBAC AuthZ - Modify Advanced Settings endpoint for PoC

2 participants