Skip to content

fix: allow only enrolled users in course forum roles#544

Merged
navinkarkera merged 1 commit intoopencraft-release/nutmeg.2from
navin/cherry-forum-role-api-change
Jun 26, 2023
Merged

fix: allow only enrolled users in course forum roles#544
navinkarkera merged 1 commit intoopencraft-release/nutmeg.2from
navin/cherry-forum-role-api-change

Conversation

@navinkarkera
Copy link
Member

Cherry pick from openedx#32436

@navinkarkera navinkarkera requested a review from kaustavb12 June 23, 2023 14:31
@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
@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