feat(kanban): update task status permissions, reporter defaults, and participant access (#345)

* feat(kanban): allow editors to change task status and default reporter to creator

* fix(kanban): hide create task button for reviewers and eliminate duplicate error toast
This commit is contained in:
Yiling-J
2026-08-23 20:38:56 +08:00
committed by GitHub
parent c1de66520e
commit f67e334016
13 changed files with 398 additions and 74 deletions
+2 -2
View File
@@ -123,7 +123,7 @@ const route = new Hono<{ Variables: { user: User } }>()
})
const existing = await kanbanService.getTask(taskId)
const role = await resolveEffectiveRole(teamId, undefined, user.id)
const role = await resolveEffectiveRole(teamId, existing.projectId ?? undefined, user.id)
const task = await kanbanService.updateTask(taskId, req, user.id, role)
const hasMeaningfulChanges =
@@ -210,8 +210,8 @@ const route = new Hono<{ Variables: { user: User } }>()
id: taskId,
})
const role = await resolveEffectiveRole(teamId, undefined, user.id)
const existing = await kanbanService.getTask(taskId)
const role = await resolveEffectiveRole(teamId, existing.projectId ?? undefined, user.id)
notificationService.notifyKanbanTaskEvent({
type: 'kanban_task_deleted',