Promote manually added user to any provided role

Description

SAK-39606 added code that will "upgrade" a user from a manually-added role to being a provided user (e.g., can't be removed from the site the way a manually-added user can be). But this code only works with identical role names. So if a user is manually added as a "Student" and they are found in the feed as a "Student", the code works fine. The code doesn't handle different role names (e.g., promoting a user from manually-added Student to Instructor).

Activity

Show:

Sam Ottenhoff January 11, 2023 at 10:13 PM

The expected result is that the official role from the provider overrides the manually-provided role.

Checking as the instructor confirms that the provider role has correctly overridden the manually-provided role.

Thomas Kelsey January 11, 2023 at 9:44 PM

, I’m not sure if I understand your test plan. Is the user who I modify not supposed to have their role changed? And why does it matter whether an instructor or admin checks that the role has changed? Thanks for your help!

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created November 2, 2020 at 4:17 PM
Updated January 11, 2023 at 10:13 PM
Resolved November 9, 2020 at 9:11 AM