Merge pull request #322 from multica-ai/fix/agent-skill-permission

fix(agent): allow members to manage skills on their own agents
This commit is contained in:
LinYushen 2026-04-02 12:36:50 +08:00 committed by GitHub
commit bea739cba5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -959,7 +959,7 @@ func (h *Handler) SetAgentSkills(w http.ResponseWriter, r *http.Request) {
if !ok {
return
}
if _, ok := h.requireWorkspaceRole(w, r, uuidToString(agent.WorkspaceID), "agent not found", "owner", "admin"); !ok {
if !h.canManageAgent(w, r, agent) {
return
}