diff options
author | 2020-12-29 15:38:26 +0200 | |
---|---|---|
committer | 2020-12-29 15:38:26 +0200 | |
commit | 5ced1c97d9553528b32d84ac819f53dffa0419b8 (patch) | |
tree | 82fad054332993a0a4d2788e5dad121e3fdc13a1 | |
parent | Add Discord bot token constant from environment (diff) |
Add ASSIGN_ROLE flag to schema and to enum
-rw-r--r-- | SCHEMA.md | 1 | ||||
-rw-r--r-- | backend/constants.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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): |