fix: preserve catalog and staff checks for authZ about-page access#38736
fix: preserve catalog and staff checks for authZ about-page access#38736BryanttV wants to merge 1 commit into
Conversation
|
Thanks for the pull request, @BryanttV! This repository is currently maintained by 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 approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo 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:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere 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:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
95a51b7 to
462c398
Compare
462c398 to
28efc11
Compare
28efc11 to
32ef4b1
Compare
| self.unauthorized_user, | ||
| self.course.id | ||
| ) | ||
| """User without AuthZ role can still access when catalog visibility allows.""" |
There was a problem hiding this comment.
Why do we need this change? Is it not better to maintain the behavior of not showing the info if the user is unauthorized, even though it is visible in the catalog? - Or is there a view that needs this?
There was a problem hiding this comment.
If we need this, we should modify the test name and add more tests to make our intentions explicit (for example, test that if it is visible in the catalog, it is visible for everyone, or other cases). This applies to the modifications on test_user_gains_access_after_role_assignment as well.
Description
When AuthZ course authoring is enabled for a course,
can_see_about_pagepreviously checked onlyCOURSES_VIEW_COURSEand ignored catalog visibility and staff bypass. Learners, data researchers, beta testers, and course staff could be blocked from the about page even when legacy rules would have allowed access.Supporting information
Testing instructions
Note
RBAC must be enabled globally, at the organization level, or for specific courses.
Modify the Catalog Visibility Setting and Public Course Content from Studio > Advanced Settings. Everything should work according to the configuration (docs)
Screenshots
Before
After
Deadline
Verawood