From f05f3face3a45e8e59958371c19341aa72087543 Mon Sep 17 00:00:00 2001 From: yushen Date: Thu, 2 Apr 2026 12:25:19 +0800 Subject: [PATCH] fix(agent): allow members to manage skills on their own agents SetAgentSkills previously only allowed workspace owner/admin roles, blocking members from adding skills to their own agents. Now uses canManageAgent which allows agent owners too. Co-Authored-By: Claude Opus 4.6 (1M context) --- server/internal/handler/skill.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/handler/skill.go b/server/internal/handler/skill.go index f04510b6..896b14b4 100644 --- a/server/internal/handler/skill.go +++ b/server/internal/handler/skill.go @@ -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 }