Skip to content

fix: add ADMIN role to knowledge permissions#6491

Merged
wxg0103 merged 1 commit into
v2from
pr@v2@fix_share_knowledge_permission
Jul 22, 2026
Merged

fix: add ADMIN role to knowledge permissions#6491
wxg0103 merged 1 commit into
v2from
pr@v2@fix_share_knowledge_permission

Conversation

@shaohuzhang1

Copy link
Copy Markdown
Contributor

fix: add ADMIN role to knowledge permissions

Copilot AI review requested due to automatic review settings July 22, 2026 07:05
@shaohuzhang1

Copy link
Copy Markdown
Contributor Author

Seems you are using me but didn't get OPENAI_API_KEY seted in Variables/Secrets for this repo. you could follow readme for more information

@wxg0103
wxg0103 merged commit 7887d44 into v2 Jul 22, 2026
5 of 7 checks passed
@wxg0103
wxg0103 deleted the pr@v2@fix_share_knowledge_permission branch July 22, 2026 07:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the UI router permission gate for the Knowledge module so that users with the global ADMIN role can access Knowledge routes without needing workspace-scoped knowledge permissions.

Changes:

  • Add RoleConst.ADMIN to the /knowledge route’s meta.permission list so ADMIN passes the permission check.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants