From 507f0269a68c15b0871477b5e44198684d4d88ed Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 12 Aug 2025 00:31:01 +0300 Subject: [PATCH] Check validity of encryption key --- .../public/lib/commands/data_exports/create/check.liquid | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/data_export_api/public/lib/commands/data_exports/create/check.liquid b/modules/data_export_api/public/lib/commands/data_exports/create/check.liquid index b7d1cfd..d775e2d 100644 --- a/modules/data_export_api/public/lib/commands/data_exports/create/check.liquid +++ b/modules/data_export_api/public/lib/commands/data_exports/create/check.liquid @@ -1,6 +1,10 @@ {% liquid assign c = '{ "errors": {}, "valid": true }' | parse_json + if object.encryption + function c = 'modules/core/validations/gpg', c: c, object: object, field_name: 'encryption' + endif + assign object = object | hash_merge: valid: c.valid, errors: c.errors return object