From 214881451dd9d228353e51a01244880f6466e6a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Gir=C3=B3n?= Date: Fri, 23 Feb 2024 11:03:06 +0100 Subject: [PATCH] allow custom default user role --- backend/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/config.py b/backend/config.py index 784c95d1..d7c9414f 100644 --- a/backend/config.py +++ b/backend/config.py @@ -187,7 +187,7 @@ DEFAULT_PROMPT_SUGGESTIONS = ( ) -DEFAULT_USER_ROLE = "pending" +DEFAULT_USER_ROLE = os.getenv("DEFAULT_USER_ROLE", "pending") USER_PERMISSIONS = {"chat": {"deletion": True}}