diff --git a/src/lib/services/access-service.ts b/src/lib/services/access-service.ts index 27988dda81..8eb193ad03 100644 --- a/src/lib/services/access-service.ts +++ b/src/lib/services/access-service.ts @@ -105,7 +105,7 @@ export class AccessService { * @param projectId */ async hasPermission( - user: User, + user: Pick, permission: string, projectId?: string, environment?: string, @@ -143,7 +143,9 @@ export class AccessService { } } - async getPermissionsForUser(user: IUser): Promise { + async getPermissionsForUser( + user: Pick, + ): Promise { if (user.isAPI) { return user.permissions?.map((p) => ({ permission: p,