kuzzle 2.38.0 → 2.38.1

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.
@@ -31,6 +31,7 @@ const kerror = require("../../kerror");
31
31
  const errorCodes = require("../../kerror/codes");
32
32
  const Manifest = require("./pluginManifest");
33
33
  const { has, isPlainObject } = require("../../util/safeObject");
34
+ const defaultConfig = require("../../config/default.config");
34
35
 
35
36
  const assertionError = kerror.wrap("plugin", "assert");
36
37
  const runtimeError = kerror.wrap("plugin", "runtime");
@@ -334,8 +335,9 @@ class Plugin {
334
335
  definition.actions,
335
336
  )) {
336
337
  if (
337
- !global.app.config.content.controllers.definition
338
- .allowAdditionalActionProperties
338
+ !global.app.config.content.controllers?.definition
339
+ ?.allowAdditionalActionProperties ??
340
+ defaultConfig.controllers.definition.allowAdditionalActionProperties
339
341
  ) {
340
342
  const actionProperties = Object.keys(actionDefinition).filter(
341
343
  (prop) => prop !== "handler" && prop !== "http",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kuzzle",
3
3
  "author": "The Kuzzle Team <support@kuzzle.io>",
4
- "version": "2.38.0",
4
+ "version": "2.38.1",
5
5
  "description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
6
6
  "bin": "bin/start-kuzzle-server",
7
7
  "scripts": {