From 5ced1c97d9553528b32d84ac819f53dffa0419b8 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Tue, 29 Dec 2020 15:38:26 +0200 Subject: Add ASSIGN_ROLE flag to schema and to enum --- SCHEMA.md | 1 + backend/constants.py | 1 + 2 files changed, 2 insertions(+) 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): -- cgit v1.2.3