bruce-models 4.2.5 → 4.2.6
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 +6 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +6 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/tileset/tileset.js +5 -2
- package/dist/lib/tileset/tileset.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/tileset/tileset.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -9419,10 +9419,13 @@ var Tileset;
|
|
|
9419
9419
|
*/
|
|
9420
9420
|
function IsAccessAllowed(params) {
|
|
9421
9421
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9422
|
-
let { tilesetId, sourceAccountId, getters, forAccountId, req } = params;
|
|
9422
|
+
let { tilesetId, sourceAccountId, getters, forAccountId, checkFreeOption, req } = params;
|
|
9423
9423
|
if (!forAccountId) {
|
|
9424
9424
|
forAccountId = ENVIRONMENT.PARAMS.accountId;
|
|
9425
9425
|
}
|
|
9426
|
+
if (checkFreeOption == null) {
|
|
9427
|
+
checkFreeOption = true;
|
|
9428
|
+
}
|
|
9426
9429
|
// Null source account id means it's a tileset from within the same account.
|
|
9427
9430
|
// We also don't want to bother looking for records if we're loading in our own account.
|
|
9428
9431
|
if (forAccountId == sourceAccountId || !sourceAccountId) {
|
|
@@ -9454,7 +9457,7 @@ var Tileset;
|
|
|
9454
9457
|
}
|
|
9455
9458
|
// If not allowed we'll check if this is a CC3D tileset and if it's set as the selected "free" one.
|
|
9456
9459
|
// This is a placeholder feature until a marketplace system is made.
|
|
9457
|
-
if (String(sourceAccountId).toLowerCase().trim() == "cc3d") {
|
|
9460
|
+
if (String(sourceAccountId).toLowerCase().trim() == "cc3d" && checkFreeOption) {
|
|
9458
9461
|
const settings = (yield Account.GetAppSettings({
|
|
9459
9462
|
accountId: forAccountId,
|
|
9460
9463
|
appId: Account.EAppId.Navigator,
|
|
@@ -13242,7 +13245,7 @@ var DataSource;
|
|
|
13242
13245
|
})(DataSource || (DataSource = {}));
|
|
13243
13246
|
|
|
13244
13247
|
// This is updated with the package.json version on build.
|
|
13245
|
-
const VERSION = "4.2.
|
|
13248
|
+
const VERSION = "4.2.6";
|
|
13246
13249
|
|
|
13247
13250
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
13248
13251
|
//# sourceMappingURL=bruce-models.es5.js.map
|