mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
Update src/lib/services/project-service.ts
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
This commit is contained in:
parent
8364c3b396
commit
2f189db394
@ -363,7 +363,7 @@ export default class ProjectService {
|
|||||||
const role = await this.findProjectRole(projectId, roleId);
|
const role = await this.findProjectRole(projectId, roleId);
|
||||||
|
|
||||||
const usersWithRoles = await this.getUsersWithAccess(projectId);
|
const usersWithRoles = await this.getUsersWithAccess(projectId);
|
||||||
const user = usersWithRoles.users.find((u) => u.id === userId);
|
const user = usersWithRoles.users.find((user) => user.id === userId);
|
||||||
const currentRole = usersWithRoles.roles.find(
|
const currentRole = usersWithRoles.roles.find(
|
||||||
(r) => r.id === user.roleId,
|
(r) => r.id === user.roleId,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user