Update code to use relation of user=>spaces rather than spaces=>user with comparing to org spaces