From 16817cc44dd02fbb9b7e10e7d03871c299267dfb Mon Sep 17 00:00:00 2001 From: Shahzad Date: Wed, 4 Dec 2024 18:24:07 +0100 Subject: [PATCH] [Synthetics] Fix overview trends for read-only user !! (#202914) ## Summary Fix overview trends for read-only user , we wrongly assume that this `POST` route needs write permission. --- .../synthetics/server/routes/overview_trends/overview_trends.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugins/observability_solution/synthetics/server/routes/overview_trends/overview_trends.ts b/x-pack/plugins/observability_solution/synthetics/server/routes/overview_trends/overview_trends.ts index d68fc71c59b11..66be7171b2fe4 100644 --- a/x-pack/plugins/observability_solution/synthetics/server/routes/overview_trends/overview_trends.ts +++ b/x-pack/plugins/observability_solution/synthetics/server/routes/overview_trends/overview_trends.ts @@ -53,6 +53,7 @@ export async function fetchTrends( export const createOverviewTrendsRoute: SyntheticsRestApiRouteFactory = () => ({ method: 'POST', + writeAccess: false, path: SYNTHETICS_API_URLS.OVERVIEW_TRENDS, validate: { body: schema.arrayOf(