瀏覽代碼

Remove pending from allowed roles

Willnow, Patrick 6 月之前
父節點
當前提交
ea070e34f9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/config.py

+ 1 - 1
backend/open_webui/config.py

@@ -409,7 +409,7 @@ OAUTH_ROLES_CLAIM = PersistentConfig(
 OAUTH_ALLOWED_ROLES = PersistentConfig(
     "OAUTH_ALLOWED_ROLES",
     "oauth.allowed_roles",
-    [role.strip() for role in os.environ.get("OAUTH_ALLOWED_ROLES", "pending,user,admin").split(",")],
+    [role.strip() for role in os.environ.get("OAUTH_ALLOWED_ROLES", "user,admin").split(",")],
 )
 
 OAUTH_ADMIN_ROLES = PersistentConfig(