This commit adds a new can_mention_group setting which will be used to determine who can mention a particular group. Fixes a part of #25927.