merge with master

This commit is contained in:
Martin McKeaveney 2023-09-11 11:57:18 +01:00
commit 722c4e6d48
4 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{
"version": "2.9.40-alpha.9",
"version": "2.10.2",
"npmClient": "yarn",
"packages": [
"packages/*"

View File

@ -1,4 +1,5 @@
#!/usr/bin/node
const coreBuild = require("../../../scripts/build")
coreBuild("./src/plugin/index.ts", "./dist/plugins.js")
coreBuild("./src/index.ts", "./dist/index.js")

View File

@ -107,7 +107,7 @@ export const createLicensingStore = () => {
Constants.Features.USER_GROUPS
)
const backupsEnabled = license.features.includes(
Constants.Features.BACKUPS
Constants.Features.APP_BACKUPS
)
const scimEnabled = license.features.includes(Constants.Features.SCIM)
const environmentVariablesEnabled = license.features.includes(

View File

@ -92,7 +92,7 @@ export async function getResourcePerms(
// update the various roleIds in the resource permissions
for (let role of rolesList) {
const rolePerms = allowsExplicitPerm
? roles.checkForRoleResourceArray(role.permissions, resourceId)
? roles.checkForRoleResourceArray(role.permissions || {}, resourceId)
: {}
if (rolePerms[resourceId]?.indexOf(level) > -1) {
permissions[level] = {