This commit is contained in:
Timothy Jaeryang Baek
2026-03-01 19:09:10 -06:00
parent a9e9fe7899
commit 2751a0f0b6
3 changed files with 5 additions and 8 deletions

View File

@@ -163,8 +163,8 @@ def has_connection_access(
based on ``config.access_grants`` within the connection dict.
- Admin with BYPASS_ADMIN_ACCESS_CONTROL → always allowed
- Empty / missing access_grants → allowed for all users
- Otherwise → delegates to ``has_access``
- Missing, None, or empty access_grants → private, admin-only
- access_grants has entries → delegates to ``has_access``
"""
from open_webui.config import BYPASS_ADMIN_ACCESS_CONTROL
@@ -175,9 +175,6 @@ def has_connection_access(
user_group_ids = {group.id for group in Groups.get_groups_by_member_id(user.id)}
access_grants = (connection.get("config") or {}).get("access_grants", [])
if not access_grants:
return True
return has_access(user.id, "read", access_grants, user_group_ids)

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "open-webui",
"version": "0.8.6",
"version": "0.8.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "open-webui",
"version": "0.8.6",
"version": "0.8.7",
"dependencies": {
"@azure/msal-browser": "^4.5.0",
"@codemirror/lang-javascript": "^6.2.2",

View File

@@ -1,6 +1,6 @@
{
"name": "open-webui",
"version": "0.8.6",
"version": "0.8.7",
"private": true,
"scripts": {
"dev": "npm run pyodide:fetch && vite dev --host",