@contember/cli
Advanced tools
Comparing version 1.3.0-alpha.6 to 1.3.0-alpha.7
@@ -33,5 +33,5 @@ "use strict"; | ||
} | ||
const permissionFactory = new engine_content_api_1.PermissionFactory(schema.model); | ||
const permissionFactory = new engine_content_api_1.PermissionFactory(); | ||
const inputRoles = input.getOption('role'); | ||
const permissions = permissionFactory.create(schema.acl, inputRoles || ['admin']); | ||
const permissions = permissionFactory.create(schema, inputRoles || ['admin']); | ||
const schemaBuilderFactory = new engine_content_api_1.GraphQlSchemaBuilderFactory(); | ||
@@ -38,0 +38,0 @@ const authorizator = new engine_content_api_1.Authorizator(permissions, (_a = schema.acl.customPrimary) !== null && _a !== void 0 ? _a : false); |
{ | ||
"name": "@contember/cli", | ||
"version": "1.3.0-alpha.6", | ||
"version": "1.3.0-alpha.7", | ||
"license": "Apache-2.0", | ||
@@ -22,9 +22,9 @@ "bin": { | ||
"dependencies": { | ||
"@contember/cli-common": "^1.3.0-alpha.6", | ||
"@contember/config-loader": "^1.3.0-alpha.6", | ||
"@contember/dic": "^1.3.0-alpha.6", | ||
"@contember/engine-content-api": "^1.3.0-alpha.6", | ||
"@contember/schema": "^1.3.0-alpha.6", | ||
"@contember/schema-migrations": "^1.3.0-alpha.6", | ||
"@contember/schema-utils": "^1.3.0-alpha.6", | ||
"@contember/cli-common": "^1.3.0-alpha.7", | ||
"@contember/config-loader": "^1.3.0-alpha.7", | ||
"@contember/dic": "^1.3.0-alpha.7", | ||
"@contember/engine-content-api": "^1.3.0-alpha.7", | ||
"@contember/schema": "^1.3.0-alpha.7", | ||
"@contember/schema-migrations": "^1.3.0-alpha.7", | ||
"@contember/schema-utils": "^1.3.0-alpha.7", | ||
"@graphql-tools/schema": "^8.3.5", | ||
@@ -31,0 +31,0 @@ "chalk": "^4.1.2", |
@@ -51,5 +51,5 @@ import { Command, CommandConfiguration, Input } from '@contember/cli-common' | ||
} | ||
const permissionFactory = new PermissionFactory(schema.model) | ||
const permissionFactory = new PermissionFactory() | ||
const inputRoles = input.getOption('role') | ||
const permissions = permissionFactory.create(schema.acl, inputRoles || ['admin']) | ||
const permissions = permissionFactory.create(schema, inputRoles || ['admin']) | ||
const schemaBuilderFactory = new GraphQlSchemaBuilderFactory() | ||
@@ -56,0 +56,0 @@ const authorizator = new Authorizator(permissions, schema.acl.customPrimary ?? false) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
591682