Receiving mails from other group forums

Receiving mails from other group forums

by Joost Elshoff -
Number of replies: 2
Picture of Particularly helpful Moodlers Picture of Testers

On one of our instances (Moodle 3.5.1) a user with a custom role is receiving notifications from forums to which he is not subscribed. The allowed permissions are:

  • moodle/site:accessallgroups
  • mod/forum:allowforcesubscribe

The forum is set up to be in separate group mode.

The user is member of group A but receives notifications of posts to groups B, C and D.

Is there a way to solve this? Or is this expected behaviour, considering the allowed permissions?

Average of ratings: -
In reply to Joost Elshoff

Re: Receiving mails from other group forums

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

I would think a site wide permission to access all groups means he is going to get emails from A, B, C, and D. Should be easy enough to verify by temporarily removing that permission.

In reply to Joost Elshoff

Re: Receiving mails from other group forums

by Andrew Lyons -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Joost,

The behaviour is such that users will currently receive notifications if:

  • they are subscribed to the forum; and
  • they have access to the post.

There is no check for whether a group is 'their' group, only whether they have access to view the group.

The presence of the moodle/site:accessallgroups capability for this user means that they have access to the group, and therefore they receive those notifications. Therefore this is an expected behaviour.

If you would like to raise a new feature request, then we may be able to consider improving this. Perhaps a new subscription setting shown to those users who have the accessallgroups capability and only for forums which are in separate groups mode, which allows them to choose whether to receive notifications for all groups, or just their own.

Andrew

Average of ratings: Useful (2)