@adobe/helix-config 3.4.2 → 3.4.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [3.4.4](https://github.com/adobe/helix-config/compare/v3.4.3...v3.4.4) (2024-07-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add config-admin role ([#126](https://github.com/adobe/helix-config/issues/126)) ([baa2ba4](https://github.com/adobe/helix-config/commit/baa2ba46c4a741b300c2cc0114654ac6c071bcad))
7
+
8
+ ## [3.4.3](https://github.com/adobe/helix-config/compare/v3.4.2...v3.4.3) (2024-07-08)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * avoid NPE if org config is missing ([#124](https://github.com/adobe/helix-config/issues/124)) ([a9efaab](https://github.com/adobe/helix-config/commit/a9efaab5e6557b0d73406a0f78b6d2a2e0ba7b23))
14
+
1
15
  ## [3.4.2](https://github.com/adobe/helix-config/compare/v3.4.1...v3.4.2) (2024-07-06)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "3.4.2",
3
+ "version": "3.4.4",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -387,7 +387,7 @@ export async function getConfigResponse(ctx, opts) {
387
387
  // access.require.repository ?
388
388
  };
389
389
  if (opts.scope === SCOPE_ADMIN || opts.scope === SCOPE_RAW) {
390
- config.access.admin = computeSiteAdminRoles(admin, config.groups, orgConfig.groups);
390
+ config.access.admin = computeSiteAdminRoles(admin, config.groups, orgConfig?.groups);
391
391
  }
392
392
  }
393
393
 
@@ -33,7 +33,8 @@
33
33
  "admin",
34
34
  "author",
35
35
  "publish",
36
- "config"
36
+ "config",
37
+ "config_admin"
37
38
  ]
38
39
  }
39
40
  }
@@ -43,7 +43,7 @@ export interface HttpsNsAdobeComHelixConfigUser {
43
43
  id: string;
44
44
  email: string;
45
45
  name?: string;
46
- roles: ('admin' | 'author' | 'publish' | 'config')[];
46
+ roles: ('admin' | 'author' | 'publish' | 'config' | 'config_admin')[];
47
47
  }
48
48
  export interface Groups {
49
49
  [k: string]: Group;
@@ -228,7 +228,7 @@ export interface AdminAccessConfig {
228
228
  }
229
229
  export interface Role {
230
230
  /**
231
- * The email glob of the users with respective role.
231
+ * The email glob of the users or a group reference for the respective role.
232
232
  *
233
233
  * This interface was referenced by `Role`'s JSON-Schema definition
234
234
  * via the `patternProperty` "^[a-z-_]+$".
@@ -236,7 +236,7 @@ export interface AdminAccessConfig {
236
236
  }
237
237
  export interface Role {
238
238
  /**
239
- * The email glob of the users with respective role.
239
+ * The email glob of the users or a group reference for the respective role.
240
240
  *
241
241
  * This interface was referenced by `Role`'s JSON-Schema definition
242
242
  * via the `patternProperty` "^[a-z-_]+$".