Browse Source

allow custom default user role

David Girón 1 year ago
parent
commit
214881451d
1 changed files with 1 additions and 1 deletions
  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}}