mirror of https://github.com/portainer/portainer
fix(security): block user access policies for non admins EE-5826 (#10244)
parent
bbc26682dd
commit
5f50f20a7a
|
@ -100,6 +100,7 @@ func FilterEndpoints(endpoints []portainer.Endpoint, groups []portainer.Endpoint
|
||||||
endpointGroup := getAssociatedGroup(&endpoint, groups)
|
endpointGroup := getAssociatedGroup(&endpoint, groups)
|
||||||
|
|
||||||
if AuthorizedEndpointAccess(&endpoint, endpointGroup, context.UserID, context.UserMemberships) {
|
if AuthorizedEndpointAccess(&endpoint, endpointGroup, context.UserID, context.UserMemberships) {
|
||||||
|
endpoint.UserAccessPolicies = nil
|
||||||
endpoints[n] = endpoint
|
endpoints[n] = endpoint
|
||||||
n++
|
n++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue