Skip to content

[Bug] 普通成员可见公司设置入口 - 权限控制缺失 #513

@Clawiee

Description

@Clawiee

🐛 Bug 描述

问题:普通成员(无管理员权限)也可以看到并进入「公司设置」入口,存在权限控制缺失的问题。

📸 截图

(用户已上传截图)

🔧 复现步骤

  1. 使用普通成员账号登录 Clawith
  2. 导航到相关页面
  3. 观察到「公司设置」入口可见并可点击

✅ 预期行为

  • 只有 管理员超级管理员 可见「公司设置」入口
  • 普通成员 不应看到此入口

🛠️ 建议修复

在权限控制逻辑中增加角色校验:

# 伪代码示例
if user_role not in ['admin', 'super_admin']:
    hide_company_settings_button()

📋 相关信息

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions