merge with master
This commit is contained in:
commit
722c4e6d48
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"version": "2.9.40-alpha.9",
|
"version": "2.10.2",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"packages": [
|
"packages": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/node
|
#!/usr/bin/node
|
||||||
const coreBuild = require("../../../scripts/build")
|
const coreBuild = require("../../../scripts/build")
|
||||||
|
|
||||||
|
coreBuild("./src/plugin/index.ts", "./dist/plugins.js")
|
||||||
coreBuild("./src/index.ts", "./dist/index.js")
|
coreBuild("./src/index.ts", "./dist/index.js")
|
||||||
|
|
|
@ -107,7 +107,7 @@ export const createLicensingStore = () => {
|
||||||
Constants.Features.USER_GROUPS
|
Constants.Features.USER_GROUPS
|
||||||
)
|
)
|
||||||
const backupsEnabled = license.features.includes(
|
const backupsEnabled = license.features.includes(
|
||||||
Constants.Features.BACKUPS
|
Constants.Features.APP_BACKUPS
|
||||||
)
|
)
|
||||||
const scimEnabled = license.features.includes(Constants.Features.SCIM)
|
const scimEnabled = license.features.includes(Constants.Features.SCIM)
|
||||||
const environmentVariablesEnabled = license.features.includes(
|
const environmentVariablesEnabled = license.features.includes(
|
||||||
|
|
|
@ -92,7 +92,7 @@ export async function getResourcePerms(
|
||||||
// update the various roleIds in the resource permissions
|
// update the various roleIds in the resource permissions
|
||||||
for (let role of rolesList) {
|
for (let role of rolesList) {
|
||||||
const rolePerms = allowsExplicitPerm
|
const rolePerms = allowsExplicitPerm
|
||||||
? roles.checkForRoleResourceArray(role.permissions, resourceId)
|
? roles.checkForRoleResourceArray(role.permissions || {}, resourceId)
|
||||||
: {}
|
: {}
|
||||||
if (rolePerms[resourceId]?.indexOf(level) > -1) {
|
if (rolePerms[resourceId]?.indexOf(level) > -1) {
|
||||||
permissions[level] = {
|
permissions[level] = {
|
||||||
|
|
Loading…
Reference in New Issue