1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-25 08:19:40 +02:00

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

This commit is contained in:
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

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);