-
Bug
-
Resolution: Fixed
-
Major
-
2.2.6, 2.5.2, 3.1.2, 3.2.3, 3.3, 3.4
-
MOODLE_22_STABLE, MOODLE_25_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
MDL-37810-master -
-
3.4 Sprint 5
I am using Moodle 2.2.6 (Build: 20121112) and have three issues with custom roles. Our Moodle host provider (a Moodle partner) was able to recreate this issue on Moodle 2.3 (not sure which rev).
I created a number of custom roles on my site according to http://docs.moodle.org/22/en/Creating_custom_roles. One role, "Facilitator" is a duplicate of the non-editing teacher role with further restrictions on the permissions of that role. I also created a "Participant" role that is a copy of the student role with permission changes. These custom roles are assigned in the Course and Activity module context only. The custom roles allowed me to maintain the default settings on the non-editing teacher and student roles for use in other courses.
I added the Facilitator role to the Course Contact (Settings > Site administration > Appearance > Courses). Now users assigned to the Facilitator role in a course are listed as a contact in the course description just as expected.
When I enroll users into a course - in either the Facilitator or Participant role - I've found that the Enrolled Users list (Settings > Course administration > Users > Enrolled users) shows the users correctly assigned in the custom roles. The permissions for both roles seem to be correct.
Problem #1 - Participant list: Minor issue
When looking at the participant list for a course (Navigation > My courses > Course name > Participants), I find that I can only change the filter listed under "Current Role" by the custom roles that I added to the Course Contacts (Settings > Site administration > Appearance > Courses). In this case, my only choices are "All participants" and "Facilitator" - none of my other custom role names appear in the drop down list. Note - users assigned to the Moodle core roles (i.e. Student, Teacher) do appear in the drop-down list as expected.
Problem #2 - Add user in custom role to Group: Major issue
In Groups (Settings > Course administration > Users > Groups), when I click on Add/remove users to a pre-existing group, the list of potential members appears with users assigned to my custom Facilitator role and the remaining users are shown as having “No roles”. Only the Facilitator role defined as a Course Contact (Settings > Site administration > Appearance > Courses) appears as a valid role. Users assigned to any other custom role are listed under "No Role". Note - users assigned to the Moodle core roles (i.e. Student, Teacher) are listed under the name of the Moodle core role heading as expected.
Problem #3 – Select members from role in Auto-create groups: Major issue
When I try to auto-create groups, the Select members from role drop down list is limited to "All participants" and "Facilitator" - none of my other custom role names appear. Note - users assigned to the Moodle core roles (i.e. Student, Teacher) are listed in the drop down list.
Solution research:
I found a discussion thread, https://moodle.org/mod/forum/discuss.php?d=134310#p900283, where Joseph Rézeau posts a similar problem. The answer provided by Andreas Panagiotopoulos requires customizing core code on admin/settings.php?section=sitepolicies. Is there any other way?
I also read MDL-21133, https://tracker.moodle.org/browse/MDL-21133, that seems to document a similar issue in Moodle 1.9.7. That tracker issue was closed without a resolution.