diff --git a/api/http/security/filter.go b/api/http/security/filter.go index 3852bac76..a847dd71b 100644 --- a/api/http/security/filter.go +++ b/api/http/security/filter.go @@ -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++ }