fix(security): block user access policies for non admins EE-5826 (#10243)

pull/10121/head
Dakota Walsh 1 year ago committed by GitHub
parent 6a08bbe7e9
commit d75a8027a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -100,6 +100,7 @@ func FilterEndpoints(endpoints []portainer.Endpoint, groups []portainer.Endpoint
endpointGroup := getAssociatedGroup(&endpoint, groups)
if AuthorizedEndpointAccess(&endpoint, endpointGroup, context.UserID, context.UserMemberships) {
endpoint.UserAccessPolicies = nil
endpoints[n] = endpoint
n++
}

Loading…
Cancel
Save