Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.1
-
Fix Version/s: 2.0
-
Component/s: Roles / Access
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_20_STABLE
Description
To recreate the problem:
1. Set Default role for users in a course = Guest.
2. Create a new course X with an enrollment key and set Guest access = "Allow guests who have the key"
3. Login to the site and go to Login to X page (course/enrol.php).
4. Enter the enrollment key and press the "Enrol me in this course" button
In Step 4 enrolment was successful but no redirection occurs. The "Login to X" page is simply redisplayed. I can see that enrollment is successful using rolesdebug.php script. It shows that the user is assigned the Guest role in course X.
If in Step 2 we set Guest access = "Allow guests without the key," the problem does not occur. The user is redirected to the course.
Issue Links
| This issue has been marked as being related by: | ||||
| MDL-17949 | List of problems related to potential enrolment rewrite in 2.0 - META |
|
|
|
hmm, you should definitely not set the default course role to Guest because it breaks enrolments - guest role now means user is not enrolled
this can not be fixed in 1.9x - sorry