Fix Bug 969920 - Users' groups are visible to anyone regardless of the profile setting

I haven’t tested it locally yet.