anchor.diff:      ok | gui_error:error_result().
   update_record(_, FileId, Data) ->
       try
  -        SessionId = ?ROOT_SESS_ID,
  +        SessionId = g_session:get_session_id(),
           case proplists:get_value(<<"permissions">>, Data, undefined) of
               undefined ->
                   ok;
  
positive.code: -spec delete_record(RsrcType :: binary(), Id :: binary()) ->
      ok | gui_error:error_result().
  delete_record(_, FileId) ->
      SessionId = ?ROOT_SESS_ID,
      case logical_file_manager:rm_recursive(SessionId, {guid, FileId}) of
          ok ->
              ok;
  
negative.code:     ]};
  find(<<"file-public">>, FileId) ->
      ?dump({<<"file-public">>, FileId}),
      SessionId = g_session:get_session_id(),
      try
          file_record(SessionId, FileId)
      catch T:M ->
  