anchor.diff:  -spec find_all(ResourceType :: binary()) ->
       {ok, proplists:proplist()} | gui_error:error_result().
   find_all(<<"data-space">>) ->
  -    SessionId = g_session:get_session_id(),
  -    {ok, SpaceDirs} = logical_file_manager:ls(SessionId,
  -        {path, <<"/spaces">>}, 0, 1000),
  +    UserId = op_gui_utils:get_user_id(),
  +    {ok, #document{
  +        value = #onedata_user{
  +            space_ids = SpaceIds}}} = onedata_user:get(UserId),
       Res = lists:map(
  -        fun({SpaceId, SpaceName}) ->
  -            space_record(SpaceId, SpaceName)
  -        end, SpaceDirs),
  +        fun(SpaceId) ->
  +            SpaceDirId = fslogic_uuid:spaceid_to_space_dir_uuid(SpaceId),
  +            {ok, SpaceData} = find(<<"data-space">>, [SpaceDirId]),
  +            SpaceData
  +        end, SpaceIds),
       {ok, Res}.
   
   
  
positive.code: %%--------------------------------------------------------------------
  -spec find(ResourceType :: binary(), Ids :: [binary()]) ->
      {ok, proplists:proplist()} | gui_error:error_result().
  find(<<"data-space">>, [SpaceId]) ->
      SessionId = g_session:get_session_id(),
      {ok, #file_attr{name = SpaceName}} = logical_file_manager:stat(
          SessionId, {uuid, SpaceId}),
      Res = space_record(SpaceId, SpaceName),
      {ok, Res}.
  
  
  
negative.code:     SessionId = g_session:get_session_id(),
      {ok, #document{value = #session{auth = Auth}}} = session:get(SessionId),
      #auth{macaroon = Mac, disch_macaroons = DMacs} = Auth,
      {ok, DefaultSpaceId} = oz_users:get_default_space({user, {Mac, DMacs}}),
      DefaultSpaceDirId = fslogic_uuid:spaceid_to_space_dir_uuid(DefaultSpaceId),
      g_session:put_value(?DEFAULT_SPACE_KEY, DefaultSpaceDirId),
      ok.
  
  
  