Group access restriction doesn't restrict the groups shown in the list

Issue #54 closed
Iñigo Zendegi Urzelai created an issue

Hi,

We have a course with several groups and, when we configure a peerwork activity restricted by group membership, the restriction applies to the students but the teacher views inside the activity the list of all the groups in the course, it should only show those groups allowed to access the activity, doesn’t it?

We’re using the 2.0.0 version of peerwork on Moodle 3.9.2.

Comments (4)

  1. Amanda Doughty

    The availability API only exposes a filter for removing users that are not allowed to view the activity, based on any restriction. I cannot find a function to retrieve restricted/not restricted groups. So I have added a check that compares group membership before and after the filter is applied. If the filter reduces the group membership count to 0 then the group is not shown. If the group already has 0 members then it is still shown.

    This change will be in the next release. Thank you for reporting the issue.

  2. Log in to comment