MDL-63500 core_group: get_contexts_for_userid should respect component
commit89d468eb39521a3c6bcc21883e409f399ce82c7f
authorShamim Rezaie <shamim@moodle.com>
Thu, 4 Oct 2018 20:20:32 +0000 (5 06:20 +1000)
committerDavid Monllao <davidm@moodle.com>
Mon, 22 Oct 2018 10:48:28 +0000 (22 12:48 +0200)
tree5c5b9e559b7e9124171ebd5585212dc2f68e7e23
parent882c53dc146fa75ec9b0513e4f15a3ae05f8ce62
MDL-63500 core_group: get_contexts_for_userid should respect component

The get_contexts_for_userid method should not return contexts for all group memberships.
It should only return the contexts in where there is manual group
membership.

This issue is part of the MDL-62560 Epic.
group/classes/privacy/provider.php
group/tests/privacy_provider_test.php