mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
issue: Direct Tool Servers permission not working for non-admin users
#5554
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @silentoplayz on GitHub (Jun 16, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.14
Ollama Version (if applicable)
v0.9.0
Operating System
Edition: Windows 11 Pro | Version: 24H2 | OS Build: 26100.4351 | Windows Feature Experience Pack: 1000.26100.107.0
Browser (if applicable)
LibreWolf v135.0.1-1 (Firefox)
Confirmation
README.md.Expected Behavior
When the
Direct Tool Serverspermission is disabled for a user's role (e.g.,Userrole), that user should not have access to the "Connections" tab within their personal settings. This tab, and the ability to add direct tool server connections, should only be visible and accessible if the user's has explicitly been granted this permission.Actual Behavior
Even when the
Direct Tool Serverspermission is explicitly disabled for aUserrole (both in default and user group permissions), ifDirect Connectionsis toggledONin the Super Admin settings, users with theUserrole still have access to the "Connections" tab in their settings. This allows them to add direct tool server connections, bypassing the intended permission control.Steps to Reproduce
Part 1: Admin Setup
Admin Panel>Settings>Connections.ON.Admin Panel>Users.Groups, then the "Default permissions" tab.Direct Tool Serverspermission and ensure it is toggledOFF. Save changes.testuser) to this group. Ensure theDirect Tool Serverspermission is also toggledOFFfor this user group.Part 2: User Reproduction
testuser(or any non-admin user withDirect Tool Serverspermission disabled).Direct Tool Serverspermission.Comparative Test (Expected Behavior with Notes Beta):
To confirm this is specific to
Direct Tool Serversand not a general settings UI issue:Admin Panel>Settings>General.ON.Admin Panel>Users> "Default permissions".Notes (Beta)permission is toggledOFF. Save changes.testuser.Direct Tool Servers.Logs & Screenshots
https://github.com/user-attachments/assets/be19e206-6a20-4338-807a-79625ed656de
Additional Information
This issue indicates a potential oversight in how the
Direct Tool Serverspermission interacts with the globalDirect Connectionstoggle. The global toggle appears to override granular user/role permissions, making it impossible for administrators to selectively grant or deny direct tool server connection capabilities.This bypass could lead to:
@tjbck commented on GitHub (Jun 16, 2025):
Good catch, should be addressed with b748d5edee80a7afbb50456f9debaf29b38eb6e5!
@silentoplayz commented on GitHub (Jun 16, 2025):
Upon testing the issue again, I still see the
Connectionstab in the settings menu on a user account, even when theDirect Tool Serverspermission is toggled off for bothDefaultpermissions andUser Grouppermissions. To be hopefully clearer, this appears to be a permission issue forUseraccounts when theDirect Tool Serversfeature is toggled on by an admin in the admin panelConnectionssettings.@tjbck commented on GitHub (Jun 19, 2025):
@silentoplayz
Connectionstab is for direct inference connections and not direct tool connections, not sure what you meant here.@thenicekat commented on GitHub (Jun 19, 2025):
@tjbck regardless the bug I pointed out still exists. Non admin users cannot see tools tab
@tjbck commented on GitHub (Jun 19, 2025):
@thenicekat it seems like I got confused by this issue post, and it was working as intended and this wasn't an issue in the first place.
@thenicekat commented on GitHub (Jun 19, 2025):
Yes but the tools tab doesn't come up for non admins. Even though this issue was confusing looks like there's an actual problem?
@tjbck commented on GitHub (Jun 19, 2025):
Yeah it seems like we retroactively introduced the issue by misunderstanding, and incorrectly addressing the "non-existent" issue.
a196b9dc26should resolve it@thenicekat commented on GitHub (Jun 19, 2025):
oh right, understood now, thank you
@tjbck commented on GitHub (Jun 19, 2025):
Connectionsis for direct model/inference connections andToolsis for direct tool connections, so everything was working intended butb748d5edeeintroduced a new bug @thenicekat described anda196b9dc26reverts the issue.@silentoplayz commented on GitHub (Jun 19, 2025):
My apologies for the confusion caused due to my bug report. After analyzing comments and what I've reported, I noticed I did get
Connectionsfor direct model/inference connections andDirect Tool ServersforToolsmixed up in my mind, believing there was a bug when there in fact wasn't. Again, my apologies.@tjbck commented on GitHub (Jun 19, 2025):
It's all good and definitely not your fault, I take full responsibility for not reading/examining it properly from my end
@silentoplayz commented on GitHub (Jun 19, 2025):
I’m definitely at fault, and I’m here to take full responsibility for it. I shouldn’t have submitted this false bug report in the first place. I thought I had found a bug and knew how to "reproduce" it, which led to this unnecessary complication of fixing a non-existent bug. I opened this issue around the same time as eight other bug reports on the same day, so I understand if you took this bug report just as serious and gave it a quick glance before jumping in. I truly appreciate your efforts and do apologize for any confusion or wasted time this may have caused.
@thenicekat commented on GitHub (Jun 25, 2025):
Hello @tjbck could you create a release with this fix?