Explorar o código

allow custom default user role

David Girón hai 1 ano
pai
achega
214881451d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      backend/config.py

+ 1 - 1
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}}