aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/constants.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-04-09 10:34:00 +0100
committerGravatar Gareth Coles <[email protected]>2018-04-09 10:34:00 +0100
commitafc30354493ef346138281c4115118b8b0dde01b (patch)
tree9e3ee401d89a461c2372d6f16aebf6baa6367feb /pysite/constants.py
parentContribs too picky, need new payment logos (diff)
parentAdded Python 3 cheat sheet to resources.json (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'pysite/constants.py')
-rw-r--r--pysite/constants.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pysite/constants.py b/pysite/constants.py
index 69633127..e41b33bf 100644
--- a/pysite/constants.py
+++ b/pysite/constants.py
@@ -19,6 +19,8 @@ class ValidationTypes(Enum):
params = "params"
+DEBUG_MODE = "FLASK_DEBUG" in environ
+
OWNER_ROLE = 267627879762755584
ADMIN_ROLE = 267628507062992896
MODERATOR_ROLE = 267629731250176001
@@ -26,6 +28,7 @@ DEVOPS_ROLE = 409416496733880320
HELPER_ROLE = 267630620367257601
ALL_STAFF_ROLES = (OWNER_ROLE, ADMIN_ROLE, MODERATOR_ROLE, DEVOPS_ROLE)
+EDITOR_ROLES = ALL_STAFF_ROLES + (HELPER_ROLE,)
SERVER_ID = 267624335836053506