[AMOS commit] MDL-68093 groups: Add visibility and participation settings Committed into Git: 2022-09-06 08:14 UTC

[AMOS commit] MDL-68093 groups: Add visibility and participation settings Committed into Git: 2022-09-06 08:14 UTC

by AMOS bot -
Number of replies: 0
Author: Mark Johnson
MDL-68093 groups: Add visibility and participation settings
These new settings are designed to enchance user privacy surrounding
groups. They allow groups to be configured so that users outside the
group cannot see the group, so that users in the group cannot see each
other, or so that users cannot see the group at all, even if they are in
it. This avoids issues where a group may be assigned based on sensitive
personal information (such as a person requiring special arrangements
due to a disability).

By default, groups are visible to all and available for participation in
activities, which maintains the current behaviour.

For performance, a new cache has been added to track the number of
groups on a course that are not visible to non-members. This allows us
to revert to the existing behaviour if the new features are not being
used at all on a course, and only apply the new visibility conditions if
they are.

Users who have the moodle/course:viewhiddengroups capability should be
concious of exposing hidden groups when showing their screen to other
users. The "Switch role to..." feature can be used to show a course page
on screen without exposing private availability conditions, for example.

The changes cover several specific areas:
* grouplib functions, which most code should use to get lists of groups
and members (this includes the participants page).
* Activities supporting group overrides will not allow overrides for
groups that are hidden from all users.
* Activities supporting separate/visible groups modes will only allow
groups with the new "participation" flag enabled to be selected.
* Group messaging will be disabled for groups where members cannot see
each other, or cannot see the group at all.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=958da5b67ec00bf1c716515ef7416286f41f9899
http://github.com/moodle/moodle/commit/958da5b67ec00bf1c716515ef7416286f41f9899

+ 4.2 en [cachedef_coursehiddengroups,core_cache]
+ 4.2 en [participation,core_group]
+ 4.2 en [participation_help,core_group]
+ 4.2 en [visibility,core_group]
+ 4.2 en [visibility_help,core_group]
+ 4.2 en [visibilityall,core_group]
+ 4.2 en [visibilitymembers,core_group]
+ 4.2 en [visibilityown,core_group]
+ 4.2 en [visibilitynone,core_group]
+ 4.2 en [course:viewhiddengroups,core_role]