-
Bug
-
Resolution: Fixed
-
Minor
-
4.2.6
Steps to reproduce:
- Create a course.
- Create a group with visibility set to "Membership is hidden".
- Create a user, enrol them on the course and add them to the group.
- Create a Page activity. Under Restrict Access, add a Group restriction and select the group. Add some content and save the activity.
- Confirm that the Page appears on the course with the activity restriction.
- Log out and log in as the student.
- Visit the course page.
- The Page is not visible, even though you are a member of the group.
This is because when the availability API calls groups_get_user_groups(), it excludes "Membership is hidden" groups as the user isn't allowed to know about them.
Either, we need to remove these groups from the list of available groups for availability restrictions so we cannot create useless conditions, or we need a way for the groups API to return a list of the user's groups including those with "Membership is hidden".
The second option presents a risk, as it puts the responsibility on the calling code to ensure it does not expose the hidden group memberships to the user.
- caused a regression
-
MDL-81850 Restriction by group works incorrectly
-
- Closed
-
- has a non-specific relationship to
-
MDL-79479 Hidden groups make all activities assigned to each group disappear.
-
- Closed
-
- has been marked as being related by
-
MDL-68093 Membership in some groups should be hidden from some roles for FERPA/ADA compliance (data privacy issue)
-
- Closed
-
-
MDL-80094 PR only: MDL-79174 - "Membership is hidden" groups should not be available for availability restrictions.
-
- Closed
-
- is duplicated by
-
MDL-79479 Hidden groups make all activities assigned to each group disappear.
-
- Closed
-