diff --git a/package-lock.json b/package-lock.json index a93006609d9..a1d3359d1cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22688,9 +22688,10 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._baseindexof": { "version": "3.1.0", - "extraneous": true, + "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._baseuniq": { "version": "4.6.0", @@ -22705,21 +22706,24 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._bindcallback": { "version": "3.0.1", - "extraneous": true, + "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._cacheindexof": { "version": "3.0.2", - "extraneous": true, + "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._createcache": { "version": "3.1.2", - "extraneous": true, + "dev": true, "inBundle": true, "license": "MIT", + "peer": true, "dependencies": { "lodash._getnative": "^3.0.0" } @@ -22733,9 +22737,10 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._getnative": { "version": "3.9.1", - "extraneous": true, + "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash._root": { "version": "3.0.1", @@ -22753,9 +22758,10 @@ }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash.restparam": { "version": "3.6.1", - "extraneous": true, + "dev": true, "inBundle": true, - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/cz-lerna-changelog/node_modules/npm/node_modules/lodash.union": { "version": "4.6.0", @@ -65010,7 +65016,7 @@ }, "packages/common": { "name": "@esri/hub-common", - "version": "14.127.2", + "version": "14.133.4", "license": "Apache-2.0", "dependencies": { "@terraformer/arcgis": "^2.1.2", @@ -65138,7 +65144,7 @@ }, "packages/sites": { "name": "@esri/hub-sites", - "version": "14.2.4", + "version": "14.3.0", "license": "Apache-2.0", "dependencies": { "tslib": "^1.13.0" @@ -83465,7 +83471,8 @@ "lodash._baseindexof": { "version": "3.1.0", "bundled": true, - "extraneous": true + "dev": true, + "peer": true }, "lodash._baseuniq": { "version": "4.6.0", @@ -83480,17 +83487,20 @@ "lodash._bindcallback": { "version": "3.0.1", "bundled": true, - "extraneous": true + "dev": true, + "peer": true }, "lodash._cacheindexof": { "version": "3.0.2", "bundled": true, - "extraneous": true + "dev": true, + "peer": true }, "lodash._createcache": { "version": "3.1.2", "bundled": true, - "extraneous": true, + "dev": true, + "peer": true, "requires": { "lodash._getnative": "^3.0.0" } @@ -83504,7 +83514,8 @@ "lodash._getnative": { "version": "3.9.1", "bundled": true, - "extraneous": true + "dev": true, + "peer": true }, "lodash._root": { "version": "3.0.1", @@ -83521,7 +83532,8 @@ "lodash.restparam": { "version": "3.6.1", "bundled": true, - "extraneous": true + "dev": true, + "peer": true }, "lodash.union": { "version": "4.6.0", diff --git a/packages/common/src/content/_internal/ContentBusinessRules.ts b/packages/common/src/content/_internal/ContentBusinessRules.ts index ad38de07c2e..9311f23701a 100644 --- a/packages/common/src/content/_internal/ContentBusinessRules.ts +++ b/packages/common/src/content/_internal/ContentBusinessRules.ts @@ -113,10 +113,10 @@ export const ContentPermissionPolicies: IPermissionPolicy[] = [ dependencies: ["hub:content:workspace", "hub:content:edit"], }, { - // can view = (alpha org + devext environment) || (permission is passed via query param) permission: "hub:content:workspace:settings:schedule", - availability: ["alpha"], - environments: ["devext"], + dependencies: ["hub:content:workspace:settings"], + environments: ["devext", "qaext", "production"], + services: ["hub-downloads"], }, { permission: "hub:content:workspace:collaborators", diff --git a/packages/common/src/content/_internal/ContentUiSchemaSettings.ts b/packages/common/src/content/_internal/ContentUiSchemaSettings.ts index a03ef19d02b..6d9a4cf5d98 100644 --- a/packages/common/src/content/_internal/ContentUiSchemaSettings.ts +++ b/packages/common/src/content/_internal/ContentUiSchemaSettings.ts @@ -26,7 +26,11 @@ export const buildUiSchema = async ( elements: [], }; if ( - checkPermission("hub:content:workspace:settings:schedule", _context).access + checkPermission( + "hub:content:workspace:settings:schedule", + _context, + options + ).access ) { const scheduleControlElement: IUiSchemaElement = { type: "Control",