-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: cohorts api permissions #34399
base: master
Are you sure you want to change the base?
fix: cohorts api permissions #34399
Conversation
Thanks for the pull request, @dyudyunov! What's next?Please work through the following steps to get your changes 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. 🔘 Let us know that your PR is ready for review:Who will review my changes?This repository is currently maintained by 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:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
7f2625d
to
630987a
Compare
This one is ready for review 🙂 |
Thanks, @dyudyunov! I'm looking into getting a reviewer for this (and the backport). |
It would be great to have this one reviewed so we could merge it along with the backport to Quince and include the fix in quince.3 release |
630987a
to
cdb3aeb
Compare
Fix lack of the permissions for course staff/instructor roles. Allows course staff/admin users use cohorts API, e.g. for cohort filters in the Gradebook MFE.
cdb3aeb
to
3036fbe
Compare
Is there anyone able to review this? |
@dyudyunov apologies for the delay. I've put this out to our Core Contributors for review. |
Description
We've discovered a bug while using the Gradebook MFE - users with course staff/instructor roles can create and manage cohorts in the course's Instructor tab BUT they can't use the cohorts filter and the API request returns 403
The issue isn't reproducible for the Global Staff role's users as well as for users with Forum Moderator roles assigned.
Decision
Considering that the course staff/instructor has most of the permissions for the course data manipulation I decided to:
Steps To Reproduce
Expected Result
Course Staff/Instructor users can use the Cohorts filter on the Gradebook MFE and there is no 403 error for the
.../cohorts/
API call in the browser console.Notes
Interestingly, only those users who have the Forum Moderator roles assigned can create discussion posts separated by cohorts.
Even the Global Staff has no such option!
Anyway, it is out of the scope and I left it as it is.