@contember/engine-tenant-api 2.1.0-alpha.29 → 2.1.0-alpha.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contember/engine-tenant-api",
3
- "version": "2.1.0-alpha.29",
3
+ "version": "2.1.0-alpha.30",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/production/index.js",
6
6
  "typings": "./dist/types/index.d.ts",
@@ -26,16 +26,16 @@
26
26
  "generate": "gql-gen --config graphql.codegen.yml"
27
27
  },
28
28
  "dependencies": {
29
- "@contember/authorization": "2.1.0-alpha.29",
30
- "@contember/config-loader": "2.1.0-alpha.29",
31
- "@contember/database": "2.1.0-alpha.29",
32
- "@contember/database-migrations": "2.1.0-alpha.29",
33
- "@contember/dic": "2.1.0-alpha.29",
34
- "@contember/graphql-utils": "2.1.0-alpha.29",
35
- "@contember/logger": "2.1.0-alpha.29",
36
- "@contember/schema": "2.1.0-alpha.29",
37
- "@contember/schema-utils": "2.1.0-alpha.29",
38
- "@contember/typesafe": "2.1.0-alpha.29",
29
+ "@contember/authorization": "2.1.0-alpha.30",
30
+ "@contember/config-loader": "2.1.0-alpha.30",
31
+ "@contember/database": "2.1.0-alpha.30",
32
+ "@contember/database-migrations": "2.1.0-alpha.30",
33
+ "@contember/dic": "2.1.0-alpha.30",
34
+ "@contember/graphql-utils": "2.1.0-alpha.30",
35
+ "@contember/logger": "2.1.0-alpha.30",
36
+ "@contember/schema": "2.1.0-alpha.30",
37
+ "@contember/schema-utils": "2.1.0-alpha.30",
38
+ "@contember/typesafe": "2.1.0-alpha.30",
39
39
  "@graphql-tools/utils": "^10.5.5",
40
40
  "graphql-tag": "^2.12.6",
41
41
  "jose": "^5.8.0",
@@ -46,7 +46,7 @@
46
46
  "otpauth": "^9.3.4"
47
47
  },
48
48
  "devDependencies": {
49
- "@contember/database-tester": "2.1.0-alpha.29",
49
+ "@contember/database-tester": "2.1.0-alpha.30",
50
50
  "@graphql-tools/schema": "^10.0.7",
51
51
  "@types/mustache": "^4.2.5",
52
52
  "@types/node": "^20.17.22",
@@ -4,7 +4,7 @@ import { TenantRole } from './Roles'
4
4
 
5
5
  const allowedRoles = new Set<string>([TenantRole.LOGIN, TenantRole.PROJECT_ADMIN, TenantRole.ENTRYPOINT_DEPLOYER])
6
6
 
7
- const projectAdminAllowedInputRoles = ({ roles }: {roles?: readonly string[]}) => {
7
+ const projectAdminAllowedInputRoles = ({ roles }: { roles?: readonly string[] }) => {
8
8
  return roles === undefined || roles.every(it => allowedRoles.has(it))
9
9
  }
10
10
 
@@ -37,6 +37,8 @@ class PermissionsFactory {
37
37
  permissions.allow(TenantRole.PROJECT_MEMBER, PermissionActions.PROJECT_VIEW)
38
38
 
39
39
  permissions.allow(TenantRole.PROJECT_ADMIN, PermissionActions.PROJECT_VIEW)
40
+ permissions.allow(TenantRole.PROJECT_ADMIN, PermissionActions.IDENTITY_VIEW_PERMISSIONS)
41
+ permissions.allow(TenantRole.PROJECT_ADMIN, PermissionActions.PERSON_VIEW)
40
42
  permissions.allow(TenantRole.PROJECT_ADMIN, PermissionActions.API_KEY_CREATE)
41
43
  permissions.allow(TenantRole.PROJECT_ADMIN, PermissionActions.API_KEY_DISABLE)
42
44
  permissions.allow(TenantRole.PROJECT_ADMIN, PermissionActions.API_KEY_CREATE_GLOBAL(), projectAdminAllowedInputRoles)