Moodle

Hidden participants are visible in metacourses

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.3
  • Fix Version/s: None
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

Hidden participants appear as visible in metacourses.

Issue Links

Activity

Hide
Gabriel Mazetto added a comment -

I can confirm this is a bug.

Show
Gabriel Mazetto added a comment - I can confirm this is a bug.
Hide
Patrick Pollet added a comment -

Hello,

I have fixed it quite easily in my 1.9.4+ by applying the attached patch to the function sync_metacourse() in lib/moodlelib.php (two lines to change)

It works nicely when assigning a NEW hidden role attribution to the parent of some metacourses and the non visibility propages itself to all metacourses.

If the 'target user' has already the role in the metacourses (ie non hidden) you have to remove it from each metacourse and let Moodle complains about 'Role of user \"$a\" was automatically reassigned, please unassign the role in child courses instead.' You will then see that that user is first removed from the metacourse and then reappears with the wanted hidden attribution

Cheers

Show
Patrick Pollet added a comment - Hello, I have fixed it quite easily in my 1.9.4+ by applying the attached patch to the function sync_metacourse() in lib/moodlelib.php (two lines to change) It works nicely when assigning a NEW hidden role attribution to the parent of some metacourses and the non visibility propages itself to all metacourses. If the 'target user' has already the role in the metacourses (ie non hidden) you have to remove it from each metacourse and let Moodle complains about 'Role of user \"$a\" was automatically reassigned, please unassign the role in child courses instead.' You will then see that that user is first removed from the metacourse and then reappears with the wanted hidden attribution Cheers
Hide
Patrick Pollet added a comment -

small patch to lib/moodlelib.php/sync_metacourse to fix MDL-18050

Show
Patrick Pollet added a comment - small patch to lib/moodlelib.php/sync_metacourse to fix MDL-18050

People

Vote (3)
Watch (3)

Dates

  • Created:
    Updated: