aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-08-08 23:24:28 +0100
committerGravatar Joe Banks <[email protected]>2025-08-08 23:24:28 +0100
commitc29a08ec347967eded18d9254f28df71e69d8329 (patch)
tree88b728dc0c8ea246490ed12878ad9430112845d1
parentKUTIEKAT ALWAYS LINTS BEFORE PUSHING (diff)
Add UNIQUE_RESPONDER form feature
-rw-r--r--SCHEMA.md1
-rw-r--r--backend/constants.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/SCHEMA.md b/SCHEMA.md
index 1d2e4e2..d0ff099 100644
--- a/SCHEMA.md
+++ b/SCHEMA.md
@@ -37,6 +37,7 @@ In this document:
| `DISABLE_ANTISPAM` | Disable the anti-spam checks from running on a form submission. |
| `WEBHOOK_ENABLED` | The form should notify the webhook. Has no effect if no webhook is set. |
| `ASSIGN_ROLE` | The form should assign role to user. Requires `REQUIRES_LOGIN`. |
+| `UNIQUE_RESPONDER` | Only one response allowed per Discord ID. Requires `REQUIRES_LOGIN`. |
### Webhooks
Discord webhooks to send information upon form submission.
diff --git a/backend/constants.py b/backend/constants.py
index 1e55cd2..17f08b9 100644
--- a/backend/constants.py
+++ b/backend/constants.py
@@ -83,6 +83,7 @@ class FormFeatures(Enum):
DISABLE_ANTISPAM = "DISABLE_ANTISPAM"
WEBHOOK_ENABLED = "WEBHOOK_ENABLED"
ASSIGN_ROLE = "ASSIGN_ROLE"
+ UNIQUE_RESPONDER = "UNIQUE_RESPONDER"
class WebHook(Enum):