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.umd.js
CHANGED
|
@@ -9242,10 +9242,13 @@
|
|
|
9242
9242
|
*/
|
|
9243
9243
|
function IsAccessAllowed(params) {
|
|
9244
9244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9245
|
-
let { tilesetId, sourceAccountId, getters, forAccountId, req } = params;
|
|
9245
|
+
let { tilesetId, sourceAccountId, getters, forAccountId, checkFreeOption, req } = params;
|
|
9246
9246
|
if (!forAccountId) {
|
|
9247
9247
|
forAccountId = exports.ENVIRONMENT.PARAMS.accountId;
|
|
9248
9248
|
}
|
|
9249
|
+
if (checkFreeOption == null) {
|
|
9250
|
+
checkFreeOption = true;
|
|
9251
|
+
}
|
|
9249
9252
|
// Null source account id means it's a tileset from within the same account.
|
|
9250
9253
|
// We also don't want to bother looking for records if we're loading in our own account.
|
|
9251
9254
|
if (forAccountId == sourceAccountId || !sourceAccountId) {
|
|
@@ -9277,7 +9280,7 @@
|
|
|
9277
9280
|
}
|
|
9278
9281
|
// If not allowed we'll check if this is a CC3D tileset and if it's set as the selected "free" one.
|
|
9279
9282
|
// This is a placeholder feature until a marketplace system is made.
|
|
9280
|
-
if (String(sourceAccountId).toLowerCase().trim() == "cc3d") {
|
|
9283
|
+
if (String(sourceAccountId).toLowerCase().trim() == "cc3d" && checkFreeOption) {
|
|
9281
9284
|
const settings = (yield exports.Account.GetAppSettings({
|
|
9282
9285
|
accountId: forAccountId,
|
|
9283
9286
|
appId: exports.Account.EAppId.Navigator,
|
|
@@ -12976,7 +12979,7 @@
|
|
|
12976
12979
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
12977
12980
|
|
|
12978
12981
|
// This is updated with the package.json version on build.
|
|
12979
|
-
const VERSION = "4.2.
|
|
12982
|
+
const VERSION = "4.2.6";
|
|
12980
12983
|
|
|
12981
12984
|
exports.VERSION = VERSION;
|
|
12982
12985
|
exports.AbstractApi = AbstractApi;
|