Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(agent): allow members to manage skills on their own agents

yushenf05f3face3a4
diff --git a/server/internal/handler/skill.go b/server/internal/handler/skill.go
index f04510b61f..896b14b42d 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
}