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.
@@ -8445,6 +8445,7 @@ async function ensureLoadedPreferences(context) {
8445
8445
  } else {
8446
8446
  throw new Error(`(via loadPrefs) ${err}`);
8447
8447
  }
8448
+ context.preferencesFileError = m2;
8448
8449
  }
8449
8450
  return context;
8450
8451
  }
@@ -9184,24 +9185,14 @@ function newAppInstance(dom, appDetails, callback) {
9184
9185
  * and/or a developer
9185
9186
  */
9186
9187
  async function getUserRoles() {
9187
- const sessionInfo = external_SolidLogic_.authSession.info;
9188
- if (!sessionInfo?.isLoggedIn || !sessionInfo?.webId) {
9189
- return [];
9190
- }
9191
- const currentUser = external_SolidLogic_.authn.currentUser();
9192
- if (!currentUser) {
9193
- return [];
9194
- }
9195
9188
  try {
9196
9189
  const {
9197
9190
  me,
9198
9191
  preferencesFile,
9199
9192
  preferencesFileError
9200
- } = await ensureLoadedPreferences({
9201
- me: currentUser
9202
- });
9193
+ } = await ensureLoadedPreferences({});
9203
9194
  if (!preferencesFile || preferencesFileError) {
9204
- throw new Error(preferencesFileError || 'Unable to load user preferences file.');
9195
+ throw new Error(preferencesFileError);
9205
9196
  }
9206
9197
  return external_SolidLogic_.solidLogicSingleton.store.each(me, ns.rdf('type'), null, preferencesFile.doc());
9207
9198
  } catch (error) {