@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/data-layer/src/index.d.ts +2 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.esm.js +2 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/web-utils/src/features/chat/slice.d.ts +3 -3
- package/dist/web-utils/src/features/files/filesSlice.d.ts +2 -2
- package/dist/web-utils/src/index.mobile.d.ts +2 -54
- package/dist/web-utils/src/index.web.d.ts +2 -54
- package/package.json +1 -1
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
|
|
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
|
}
|