Use getSpaces with SpacesQuery rather than deprecated getPermittedSpacesForUser
Merge pull request #5 from bananastalktome/2.2.1.2

Use getSpaces with SpacesQuery rather than deprecated getPermittedSpaces...