tighten permission checks and input validation across the api

This commit is contained in:
Jarek Krochmalski committed 2026-09-02 15:52:44 +02:00
1 parent 77686da02a
commit 5af4e69eb2
47 files changed
+721 -225

No files matched your search

+3 -1
View File
@@ -602,7 +602,9 @@
hasErrors = true;
}
if (formWebhookEnabled && !formWebhookSecret.trim()) {
// A secret is required unless the instance opted into secret-less webhooks
// (ALLOW_WEBHOOKS_WITHOUT_SECRET, for isolated networks) - mirror the server.
if (formWebhookEnabled && !formWebhookSecret.trim() && !$page.data.allowSecretlessWebhook) {
errors.webhookSecret = 'A webhook secret is required when the webhook is enabled';
hasErrors = true;
}