1Panel-dev/MaxKB

[Bug] [Role] There is a problem with the role permission configuration of the knowledge base character

Closed this issue · 2 comments

Contact Information

No response

MaxKB Version

2.0.2

Problem Description

给用户配置的权限只有知识库的文档的相关权限,但是他却能看到“问题”、“命中测试”以及“对话用户”的界面。

Steps to Reproduce

1、创建一个张三的用户(如附件一);

Image

2、创建一个集成自普通用户的角色,角色只给知识库的查看和文档的查看、创建、编辑和删除的权限(如附件二);

Image

3、在“新版本测试”空间中把张三以这个角色的身份引入(如附件三);

Image

4、在“资源授权”进行如下设置(如附件四);

Image

5、登录张三用户,张三能看到“问题”、“命中测试”以及“对话用户”的界面(如附件五)。

Image

The expected correct result

No response

Related log output

Additional Information

No response

感谢反馈,你知识库授权使用的是 自定义的查看权限,改成按角色授权,会按照这个用户角色的权限位进行控制。

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Thanks for the feedback, your knowledge base authorization uses custom viewing permissions, and it is changed to authorization by role, and will be controlled according to the permissions of this user role.