new-api icon indicating copy to clipboard operation
new-api copied to clipboard

v1.0.0-rc.25 UI控制台权限控制无效:系统管理关闭侧边栏聊天区域后,个人用户仍显示这些配置项

Open Chivenh opened this issue 3 months ago • 2 comments

Deployment source

Repository release / official image (self-hosted)

Your current newapi version

v1.0.0-rc.25

Submission Checks

  • [x] Non-duplicate issue: I have searched existing Issues and confirmed there are no similar issues.
  • [x] Read this first: I have fully read the section above, reviewed the docs at https://docs.newapi.ai/ and the project README, and asked AI first, confirming this is not a usage, configuration, or integration question.
  • [x] Supported version: I have provided an exact version, commit, or image tag (not latest or unknown) and confirmed that the issue reproduces on an unmodified, supported version from this repository.
  • [x] Not a third-party service: I confirm that this issue is not exclusive to a third-party hosting site, relay, API service, or fork that has not been verified against the unmodified repository. Third-party instance issues must be reported to their operator.
  • [x] Issue attribution: I have provided evidence that distinguishes the client, new-api, and upstream layers. For relay issues, I compared equivalent redacted requests sent directly upstream and through new-api, confirming that new-api introduces or changes the error rather than merely forwarding the upstream error unchanged.
  • [x] Channel and protocol boundary: I confirm that the issue is not caused by a Coding Plan service, reverse-engineered channel, third-party API wrapper, Codex reverse-proxy endpoint, or behavior specific to the Codex API. If first observed through such an interface, I have reproduced it using a standard API protocol supported by this repository.
  • [x] Maintainer time: I understand that maintainers have limited time and issues that do not follow this template may be ignored or closed directly.

Issue Description

问题描述

v1.0.0-rc.25 版本中 UI 控制台权限控制无效:

  1. 管理员在"系统管理"中关闭了侧边栏的"聊天"区域后,普通个人用户在侧边栏"个人设置"中依然能看到这些配置项,关闭操作未对个人用户生效。
  2. 另建议:调用日志中非管理员不要显示"模型映射"、"参数修改"等管理类操作项,这些内容不应展示在个人日志中。

影响

  • 权限控制未生效,普通用户仍可见已被管理员关闭的功能配置项。
  • 个人调用日志中暴露了不该展示的管理项,信息展示边界不清晰。

Steps to Reproduce

  1. 使用管理员账号登录,进入"系统管理",在侧边栏相关设置中关闭"聊天"区域。
  2. 使用普通个人用户账号登录。
  3. 打开侧边栏"个人设置",观察聊天区域相关的配置项仍被显示,未被隐藏。
  4. 打开"调用日志",以非管理员用户查看,可见"模型映射"、"参数修改"等管理类操作项被展示。

Expected Result

  1. 系统管理关闭侧边栏"聊天"区域后,个人用户的侧边栏"个人设置"中不应再显示这些配置项,权限控制应正确生效。
  2. 调用日志中,非管理员不应看到"模型映射"、"参数修改"等管理类操作项,仅展示与个人使用相关的日志内容。

Related Screenshots

Image Image

Chivenh avatar Aug 21 '26 03:08 Chivenh

[Bot Review]

感谢提交,模板信息基本完整,版本、复现步骤、预期结果和截图都有提供。另一个关于调用日志展示项的建议如果需要单独讨论,建议拆成独立 issue,便于后续跟踪。

这个问题rc-24就有了

jimmyleocn avatar Aug 24 '26 08:08 jimmyleocn