Skip to content

Commit 2963584

Browse files
committed
fix(assignments): allow project managers to load User-role assignees in create-task and kanban
1 parent b65024a commit 2963584

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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
@@ -718,7 +718,7 @@ export class ProjectKanbanComponent implements OnInit, OnDestroy {
718718
forkJoin({
719719
tasks: this.taskItemsApiClient.getTasks({ projectId, page: 1, pageSize: 500 }),
720720
members: this.projectsApiClient.getMembers(projectId),
721-
assignableUsers: this.authService.hasRole(AppRole.Administrator)
721+
assignableUsers: this.authService.hasAnyRole([AppRole.Administrator, AppRole.ProjectManager])
722722
? this.adminUsersApiClient.getUsers({ role: AppRole.User, page: 1, pageSize: ProjectKanbanComponent.ASSIGNEE_PAGE_SIZE })
723723
: of(null)
724724
})

src/app/features/task-item/components/task-item-create/task-item-create.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ export class TaskItemCreateComponent implements OnInit, OnDestroy {
303303

304304
this.isLoadingMembers = true;
305305
const members$ = this.projectsApiClient.getMembers(projectId);
306-
const allUsers$ = this.authService.hasAnyRole([AppRole.Administrator])
307-
? this.adminUsersApiClient.getUsers({ page: 1, pageSize: 500 })
306+
const allUsers$ = this.authService.hasAnyRole([AppRole.Administrator, AppRole.ProjectManager])
307+
? this.adminUsersApiClient.getUsers({ role: AppRole.User, page: 1, pageSize: 500 })
308308
: of(null);
309309

310310
forkJoin({ members: members$, usersResponse: allUsers$ })

0 commit comments

Comments
 (0)