Skip to content
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: allow only enrolled users in course forum roles #544

Merged

Conversation

navinkarkera
Copy link
Member

Cherry pick from openedx#32436

@navinkarkera navinkarkera self-assigned this Jun 23, 2023
Copy link
Member

@kaustavb12 kaustavb12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

  • I tested this: Tested the upstream PR and verified that the same changes are ported here.
  • I read through the code
  • I checked for accessibility issues
  • Includes documentation
  • I made sure any change in configuration variables is reflected in the corresponding client's configuration-secure repository.

The course team management section under Instructor > Membership tab
allows users to be added a role even if are not enrolled in the course.
This is not the expected behaviour based on the help text displayed in
the section.

This PR updates update_forum_role_membership api to check whether user
is enrolled before adding them to a role.

Cherry pick from openedx#32436

(cherry picked from commit 10377ea7d0b1182f5d0b6d389161fab2bac1722a)
@navinkarkera navinkarkera force-pushed the navin/cherry-forum-role-api-change branch from c3b509a to 259dbf6 Compare June 26, 2023 06:07
@navinkarkera navinkarkera merged commit e3afa14 into opencraft-release/nutmeg.2 Jun 26, 2023
30 checks passed
@navinkarkera navinkarkera deleted the navin/cherry-forum-role-api-change branch June 26, 2023 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants