fix(access/viwer): update the viwer filter key to user.id (#8055)

pull/8063/head
Oscar Zhou 2022-11-17 10:38:34 +13:00 committed by GitHub
parent bb48ab00cb
commit e0f3a8c0a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export default class AccessViewerController {
throw new Error('User not found');
}
const userMemberships = _.filter(this.teamMemberships, { UserId: user.value });
const userMemberships = _.filter(this.teamMemberships, { UserId: user.Id });
for (const [, endpoint] of _.entries(this.endpoints)) {
let role = this.getRoleFromUserEndpointPolicy(user, endpoint);