MDL-40354 groups: Add new api groups_group_visible()
MDL-40354 groups:groups_get_activity_allowed_groups() should use passed userid to check capabilities