Skip to content

[Bug/错误]: 用户权限问题 #1674

@jyeric

Description

@jyeric

Pre-submission Checklist / 提交前检查

  • I have searched the existing issues and this bug has not been reported / 我已搜索现有 issues,此 Bug 尚未被报告
  • I have read the documentation / 我已阅读文档
  • I am using the latest version of AxonHub / 我正在使用 AxonHub 的最新版本

FAQ Check / FAQ 检查

  • I have checked the FAQ and this bug is not covered there / 我已查阅 FAQ,此 Bug 未被覆盖

Bug Description / Bug 描述

添加的普通用户没有“read_users”权限就没有办法创建和读取API KEY,提示permission denied,即使该用户有project的完整权限

Steps to Reproduce / 复现步骤

  1. 创建新用户
  2. write_api_keys,read_api_keys,read_requests,write_requests,read_prompts,write_prompts,read_users(管理权限)和完整的project权限
  3. 用户现在没有权限添加api key,只有给予“read_users”权限才能读取和添加API KEY

Expected Behavior / 期望行为

普通用户应该在没有任何管理权限的情况下对project有完整权限

Error Message / 错误消息

Operating System / 操作系统

Linux (Ubuntu/Debian) / Linux(Ubuntu/Debian)

AxonHub Version / AxonHub 版本

v0.9.42

Usage Scenario / 使用场景

Other / 其他

API Format / API 格式

N/A / 不适用

Channel Type / 渠道类型

N/A / 不适用

Logs / 日志

Additional Context / 其他补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions