aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-29 15:38:26 +0200
committerGravatar ks129 <[email protected]>2020-12-29 15:38:26 +0200
commit5ced1c97d9553528b32d84ac819f53dffa0419b8 (patch)
tree82fad054332993a0a4d2788e5dad121e3fdc13a1
parentAdd Discord bot token constant from environment (diff)
Add ASSIGN_ROLE flag to schema and to enum
-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 c3edf35..11b4b89 100644
--- a/SCHEMA.md
+++ b/SCHEMA.md
@@ -31,6 +31,7 @@ In this document:
| `COLLECT_EMAIL` | The form should collect the email from submissions. Requires `REQUIRES_LOGIN` |
| `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`. |
### Webhooks
Discord webhooks to send information upon form submission.
diff --git a/backend/constants.py b/backend/constants.py
index d9d2735..e6ff127 100644
--- a/backend/constants.py
+++ b/backend/constants.py
@@ -66,6 +66,7 @@ class FormFeatures(Enum):
COLLECT_EMAIL = "COLLECT_EMAIL"
DISABLE_ANTISPAM = "DISABLE_ANTISPAM"
WEBHOOK_ENABLED = "WEBHOOK_ENABLED"
+ ASSIGN_ROLE = "ASSIGN_ROLE"
class WebHook(Enum):