bruce-models 6.5.0 → 6.5.1
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/bruce-models.es5.js +4 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +4 -2
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/user/session.js +3 -1
- package/dist/lib/user/session.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -12423,6 +12423,7 @@
|
|
|
12423
12423
|
if ((_c = (_b = session === null || session === void 0 ? void 0 : session.User) === null || _b === void 0 ? void 0 : _b.AccessPermissions) === null || _c === void 0 ? void 0 : _c.length) {
|
|
12424
12424
|
for (let i = 0; i < session.User.AccessPermissions.length; i++) {
|
|
12425
12425
|
const perms = session.User.AccessPermissions[i];
|
|
12426
|
+
let accIdChecked = false;
|
|
12426
12427
|
// Newer API versions always specify accountId in the collections.
|
|
12427
12428
|
// If it's set we can do a super account check early.
|
|
12428
12429
|
if (perms["ClientAccount.ID"] != null) {
|
|
@@ -12430,13 +12431,14 @@
|
|
|
12430
12431
|
if (pAccountId != exports.Api.SUPER_ACCOUNT_ID) {
|
|
12431
12432
|
continue;
|
|
12432
12433
|
}
|
|
12434
|
+
accIdChecked = true;
|
|
12433
12435
|
}
|
|
12434
12436
|
if ((_d = perms === null || perms === void 0 ? void 0 : perms.UserGroups) === null || _d === void 0 ? void 0 : _d.length) {
|
|
12435
12437
|
for (let j = 0; j < perms.UserGroups.length; j++) {
|
|
12436
12438
|
const group = perms.UserGroups[j];
|
|
12437
12439
|
if (typeof group != "string") {
|
|
12438
12440
|
const gAccountId = String(group["ClientAccount.ID"]).toLowerCase();
|
|
12439
|
-
if (gAccountId != exports.Api.SUPER_ACCOUNT_ID) {
|
|
12441
|
+
if (gAccountId != exports.Api.SUPER_ACCOUNT_ID && !accIdChecked) {
|
|
12440
12442
|
continue;
|
|
12441
12443
|
}
|
|
12442
12444
|
const features = group.Features;
|
|
@@ -15833,7 +15835,7 @@
|
|
|
15833
15835
|
})(exports.Tracking || (exports.Tracking = {}));
|
|
15834
15836
|
|
|
15835
15837
|
// This is updated with the package.json version on build.
|
|
15836
|
-
const VERSION = "6.5.
|
|
15838
|
+
const VERSION = "6.5.1";
|
|
15837
15839
|
|
|
15838
15840
|
exports.VERSION = VERSION;
|
|
15839
15841
|
exports.AbstractApi = AbstractApi;
|