Browse Source

Fix bug of isProjectAdmin

pull/1627/head
Hironsan 2 years ago
parent
commit
9344611170
1 changed files with 1 additions and 1 deletions
  1. 2
      frontend/services/application/member/memberApplicationService.ts

2
frontend/services/application/member/memberApplicationService.ts

@ -41,6 +41,6 @@ export class MemberApplicationService {
public async isProjectAdmin(projectId: string, userId: number): Promise<boolean> {
const items = await this.repository.list(projectId)
return items.some((item) => item.id === userId && item.isProjectAdmin)
return items.some((item) => item.user === userId && item.isProjectAdmin)
}
}
Loading…
Cancel
Save