fix license check
This commit is contained in:
parent
9175cab4ca
commit
c68b5ccb84
2 changed files with 3 additions and 3 deletions
|
@ -54,12 +54,12 @@ export const getBindableProperties = (asset, componentId) => {
|
||||||
* Gets all rest bindable data fields
|
* Gets all rest bindable data fields
|
||||||
*/
|
*/
|
||||||
export const getRestBindings = () => {
|
export const getRestBindings = () => {
|
||||||
const hasEnvironmentVariablesEnabled = get(licensing).hasEnvironmentVariables
|
const environmentVariablesEnabled = get(licensing).environmentVariablesEnabled
|
||||||
const userBindings = getUserBindings()
|
const userBindings = getUserBindings()
|
||||||
return [
|
return [
|
||||||
...userBindings,
|
...userBindings,
|
||||||
...getAuthBindings(),
|
...getAuthBindings(),
|
||||||
...(hasEnvironmentVariablesEnabled ? getEnvironmentBindings() : []),
|
...(environmentVariablesEnabled ? getEnvironmentBindings() : []),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ export const createLicensingStore = () => {
|
||||||
const backupsEnabled = license.features.includes(
|
const backupsEnabled = license.features.includes(
|
||||||
Constants.Features.BACKUPS
|
Constants.Features.BACKUPS
|
||||||
)
|
)
|
||||||
let environmentVariablesEnabled = license.features.includes(
|
const environmentVariablesEnabled = license.features.includes(
|
||||||
Constants.Features.ENVIRONMENT_VARIABLES
|
Constants.Features.ENVIRONMENT_VARIABLES
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue