Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.9.6
-
Fix Version/s: 1.9.8
-
Component/s: Roles / Access
-
Labels:None
-
Difficulty:Easy
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
Let's say we have three courses: A, B and C. Also, course A is a metacourse aggregating B and C.
Then, i go to course B and enroll a user with any role, marking it as a hidden assign. If i go to course A, the assign o that user will not be hidden.
I have tracked it down to the sync_metacourse() function, when this function gets the assignments of users in child courses, it doesn't get the hidden field from role_assignments and so, it is not passed as parameter to role_assign() afterwards.
So, unless this should not be done for some reason, i am willing to do the patch to correct this.
Attachments
Issue Links
| This issue duplicates: | ||||
| MDL-18050 | Hidden participants are visible in metacourses |
|
|
|
Daniel - Here is a quick patch that I think may address your issue. It was true that the hidden field was not being considered when making the assignments. Hidden is not needed for unassignments so give this a test and see if it behaves the way that you need. Peace - Anthony