solid-ui 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5137,6 +5137,7 @@ async function ensureLoadedPreferences(context) {
5137
5137
  } else {
5138
5138
  throw new Error(`(via loadPrefs) ${err}`);
5139
5139
  }
5140
+ context.preferencesFileError = m2;
5140
5141
  }
5141
5142
  return context;
5142
5143
  }
@@ -5876,24 +5877,14 @@ function newAppInstance(dom, appDetails, callback) {
5876
5877
  * and/or a developer
5877
5878
  */
5878
5879
  async function getUserRoles() {
5879
- const sessionInfo = solid_logic__WEBPACK_IMPORTED_MODULE_1__.authSession.info;
5880
- if (!sessionInfo?.isLoggedIn || !sessionInfo?.webId) {
5881
- return [];
5882
- }
5883
- const currentUser = solid_logic__WEBPACK_IMPORTED_MODULE_1__.authn.currentUser();
5884
- if (!currentUser) {
5885
- return [];
5886
- }
5887
5880
  try {
5888
5881
  const {
5889
5882
  me,
5890
5883
  preferencesFile,
5891
5884
  preferencesFileError
5892
- } = await ensureLoadedPreferences({
5893
- me: currentUser
5894
- });
5885
+ } = await ensureLoadedPreferences({});
5895
5886
  if (!preferencesFile || preferencesFileError) {
5896
- throw new Error(preferencesFileError || 'Unable to load user preferences file.');
5887
+ throw new Error(preferencesFileError);
5897
5888
  }
5898
5889
  return solid_logic__WEBPACK_IMPORTED_MODULE_1__.solidLogicSingleton.store.each(me, _ns__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.rdf('type'), null, preferencesFile.doc());
5899
5890
  } catch (error) {