diff --git a/src/channels/web/static/app.js b/src/channels/web/static/app.js index c229f60d..2dc289fd 100644 --- a/src/channels/web/static/app.js +++ b/src/channels/web/static/app.js @@ -186,6 +186,13 @@ function authenticate() { connectSSE(); connectLogSSE(); startGatewayStatusPolling(); + // Hide the Users settings tab for non-admin users. + apiFetch('/api/profile').then(function(profile) { + if (profile && profile.role !== 'admin') { + var usersTab = document.querySelector('[data-settings-subtab="users"]'); + if (usersTab) usersTab.style.display = 'none'; + } + }).catch(function() {}); checkTeeStatus(); loadThreads(); loadMemoryTree(); diff --git a/src/channels/web/static/i18n/en.js b/src/channels/web/static/i18n/en.js index f984bb14..f16c2de1 100644 --- a/src/channels/web/static/i18n/en.js +++ b/src/channels/web/static/i18n/en.js @@ -9,8 +9,6 @@ I18n.register('en', { 'auth.connect': 'Connect', 'auth.errorRequired': 'Token required', 'auth.errorInvalid': 'Invalid token', - 'auth.hint': 'Enter the GATEWAY_AUTH_TOKEN from your .env file', - // Chat 'chat.inputPlaceholder': 'Message or / for commands...', diff --git a/src/channels/web/static/i18n/zh-CN.js b/src/channels/web/static/i18n/zh-CN.js index 09d28d74..5b91f984 100644 --- a/src/channels/web/static/i18n/zh-CN.js +++ b/src/channels/web/static/i18n/zh-CN.js @@ -9,8 +9,6 @@ I18n.register('zh-CN', { 'auth.connect': '连接', 'auth.errorRequired': '请输入令牌', 'auth.errorInvalid': '令牌无效', - 'auth.hint': '输入 .env 配置文件中的 GATEWAY_AUTH_TOKEN', - // 聊天 'chat.inputPlaceholder': '输入消息或 / 以使用命令...', diff --git a/src/channels/web/static/index.html b/src/channels/web/static/index.html index c05c6912..ef451662 100644 --- a/src/channels/web/static/index.html +++ b/src/channels/web/static/index.html @@ -41,7 +41,6 @@
-

Enter the GATEWAY_AUTH_TOKEN from your .env configuration.