I’m using Tutor v20.0.0 and trying to disable unenrollment for learners using the DISABLE_UNENROLLMENT feature flag.
Here’s the plugin code I added:
from tutor import hooks
hooks.Filters.ENV_PATCHES.add_items([
("openedx-lms-common-settings", "FEATURES['DISABLE_UNENROLLMENT'] = True"),
("openedx-cms-common-settings", "FEATURES['DISABLE_UNENROLLMENT'] = True"),
])
Observed behavior:
-
The unenroll option is still visible on the learner’s dashboard.
-
When I click it, the unenrollment feedback screen still shows up.
-
However, if I try to submit the unenrollment, it gets blocked (so the flag is partially working).
Expected behavior:
- The unenroll dropdown and feedback option should be hidden/disabled for learners when DISABLE_UNENROLLMENT = True.
Questions:
-
Am I missing an additional step in the configuration?
-
Has this feature flag been deprecated or replaced in MFE?