From d81a3e524d9fb2437c5f3f35d532e37a523f2a8d Mon Sep 17 00:00:00 2001 From: Kristina Date: Wed, 19 Oct 2022 15:21:40 -0500 Subject: [PATCH] Panel Menu: Use config explore enabled as an override to access control (#57225) * Use config explore as an override to access control * Change logic to need something explicitly false * Keep logic consistent --- public/app/core/services/context_srv.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/services/context_srv.ts b/public/app/core/services/context_srv.ts index aac450a9208..584be3f699f 100644 --- a/public/app/core/services/context_srv.ts +++ b/public/app/core/services/context_srv.ts @@ -157,7 +157,7 @@ export class ContextSrv { hasAccessToExplore() { if (this.accessControlEnabled()) { - return this.hasPermission(AccessControlAction.DataSourcesExplore); + return this.hasPermission(AccessControlAction.DataSourcesExplore) && config.exploreEnabled; } return (this.isEditor || config.viewersCanEdit) && config.exploreEnabled; }