@iblai/web-utils 1.1.12 → 1.1.14

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.
package/dist/index.js CHANGED
@@ -3970,7 +3970,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
3970
3970
  mentorDbId = await getMentorDbId(mentor);
3971
3971
  }
3972
3972
  // Load permissions if we have a mentor DB ID and user is logged in
3973
- if (mentorDbId && isLoggedIn && !userIsAccessingPublicRoute) {
3973
+ if (mentorDbId && isLoggedIn) {
3974
3974
  const rbacPermissions = await loadMentorsPermissions(mentorDbId);
3975
3975
  onLoadMentorsPermissions === null || onLoadMentorsPermissions === void 0 ? void 0 : onLoadMentorsPermissions(rbacPermissions);
3976
3976
  }
@@ -4017,9 +4017,7 @@ function MentorProvider({ children, fallback, onAuthSuccess, onAuthFailure, redi
4017
4017
  }
4018
4018
  else {
4019
4019
  console.log("requested mentor exists in tenant, proceeding", requestedMentorId);
4020
- if (requestedMentorDbId &&
4021
- isLoggedIn &&
4022
- !userIsAccessingPublicRoute) {
4020
+ if (requestedMentorDbId && isLoggedIn) {
4023
4021
  const rbacPermissions = await loadMentorsPermissions(requestedMentorDbId);
4024
4022
  onLoadMentorsPermissions === null || onLoadMentorsPermissions === void 0 ? void 0 : onLoadMentorsPermissions(rbacPermissions);
4025
4023
  }