Skip to content

Commit d143270

Browse files
committed
fix(kanban): allow User role to edit unassigned tasks
1 parent 67daed3 commit d143270

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/features/projects/components/project-kanban/project-kanban.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
display: grid;
183183
grid-template-columns: repeat(3, minmax(0, 1fr));
184184
gap: 2rem;
185-
min-height: calc(100vh - 19rem);
185+
min-height: calc(100vh - 8rem);
186186
}
187187

188188
.kanban-column,
@@ -279,7 +279,7 @@
279279
gap: 0.8rem;
280280
min-height: 0;
281281
height: 100%;
282-
max-height: calc(100vh - 24rem);
282+
max-height: calc(100vh - 8rem);
283283
overflow-y: auto;
284284
padding-right: 0.2rem;
285285
}

src/app/features/projects/components/project-kanban/project-kanban.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ export class ProjectKanbanComponent implements OnInit, OnDestroy {
436436
}
437437

438438
canEditTask(task: TaskItemDto): boolean {
439-
return this.canManageAllTasks || this.isAssignedToMe(task);
439+
return this.canManageAllTasks || this.isAssignedToMe(task) || (this.authService.hasRole(AppRole.User) && !task.assignedUserId);
440440
}
441441

442442
canDeleteTask(task: TaskItemDto): boolean {

0 commit comments

Comments
 (0)