modxcms/revolution — pull request #12234 by BobRay (2014-12-24 16:38:28+00:00)
Title: Unset modx.user.userGroups in joinGroup()

The user's userGroups $_SESSION variable is used by other methods to get the user's groups. It needs to be cleared in addition to userGroupNames.