Sfoglia il codice sorgente

allow custom default user role

David Girón 1 anno fa
parent
commit
214881451d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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}}