Skip to content

feat: use granular permissions on course updates if authz authoring flag set#38198

Open
wgu-taylor-payne wants to merge 1 commit intoopenedx:masterfrom
WGU-Open-edX:tpayne/authz-for-course-updates
Open

feat: use granular permissions on course updates if authz authoring flag set#38198
wgu-taylor-payne wants to merge 1 commit intoopenedx:masterfrom
WGU-Open-edX:tpayne/authz-for-course-updates

Conversation

@wgu-taylor-payne
Copy link
Contributor

@wgu-taylor-payne wgu-taylor-payne commented Mar 20, 2026

Description

Use openedx-authz permissions for the Course Updates page in Studio when the AUTHZ_COURSE_AUTHORING_FLAG is enabled for the given course.

If the AUTHZ_COURSE_AUTHORING_FLAG is disabled then the legacy permission checks will occur.

The permission checks for the "Course handouts" section of Course Updates were handled in #38179.

Supporting information

Closes openedx/openedx-authz#191.

Testing instructions

For automated tests, run pytest on cms/djangoapps/contentstore/views/tests/test_course_updates.py.

To test manually, make sure that the AUTHZ_COURSE_AUTHORING_FLAG is enabled for the course you are testing, and that openedx-platform is using openedx-authz >= 0.22.0. Run manage.py cms load_policies to ensure latest casbin policies have been loaded and then assign course related roles to the users you are testing.

Navigate to the Course Updates page for the course (e.g. http://apps.local.openedx.io:2001/authoring/course/course-v1:OpenedX+DemoX+DemoCourse/course_info) and see if the updates load, whether you can add an update, edit an update, and delete an update.

Deadline

Verawood

Other information

Co authored with Kiro.

@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 Mar 20, 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.

@wgu-taylor-payne wgu-taylor-payne force-pushed the tpayne/authz-for-course-updates branch from f11f5d4 to 8d7c496 Compare March 20, 2026 22:27
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). 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 - Implement new permissions for Course Updates

2 participants