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.es5.js
CHANGED
|
@@ -12661,6 +12661,7 @@ var Session;
|
|
|
12661
12661
|
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) {
|
|
12662
12662
|
for (let i = 0; i < session.User.AccessPermissions.length; i++) {
|
|
12663
12663
|
const perms = session.User.AccessPermissions[i];
|
|
12664
|
+
let accIdChecked = false;
|
|
12664
12665
|
// Newer API versions always specify accountId in the collections.
|
|
12665
12666
|
// If it's set we can do a super account check early.
|
|
12666
12667
|
if (perms["ClientAccount.ID"] != null) {
|
|
@@ -12668,13 +12669,14 @@ var Session;
|
|
|
12668
12669
|
if (pAccountId != Api.SUPER_ACCOUNT_ID) {
|
|
12669
12670
|
continue;
|
|
12670
12671
|
}
|
|
12672
|
+
accIdChecked = true;
|
|
12671
12673
|
}
|
|
12672
12674
|
if ((_d = perms === null || perms === void 0 ? void 0 : perms.UserGroups) === null || _d === void 0 ? void 0 : _d.length) {
|
|
12673
12675
|
for (let j = 0; j < perms.UserGroups.length; j++) {
|
|
12674
12676
|
const group = perms.UserGroups[j];
|
|
12675
12677
|
if (typeof group != "string") {
|
|
12676
12678
|
const gAccountId = String(group["ClientAccount.ID"]).toLowerCase();
|
|
12677
|
-
if (gAccountId != Api.SUPER_ACCOUNT_ID) {
|
|
12679
|
+
if (gAccountId != Api.SUPER_ACCOUNT_ID && !accIdChecked) {
|
|
12678
12680
|
continue;
|
|
12679
12681
|
}
|
|
12680
12682
|
const features = group.Features;
|
|
@@ -16147,7 +16149,7 @@ var Tracking;
|
|
|
16147
16149
|
})(Tracking || (Tracking = {}));
|
|
16148
16150
|
|
|
16149
16151
|
// This is updated with the package.json version on build.
|
|
16150
|
-
const VERSION = "6.5.
|
|
16152
|
+
const VERSION = "6.5.1";
|
|
16151
16153
|
|
|
16152
16154
|
export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking };
|
|
16153
16155
|
//# sourceMappingURL=bruce-models.es5.js.map
|