Scopes: Disable support for public dashboards (#113267)
Disable scopes support for public dashboards
This commit is contained in:
+2
-1
@@ -281,7 +281,8 @@ function createVariablesForDashboard(dashboard: DashboardV2Spec) {
|
||||
// Added temporarily to allow skipping non-compatible variables
|
||||
.filter((v): v is SceneVariable => Boolean(v));
|
||||
|
||||
if (config.featureToggles.scopeFilters) {
|
||||
// Explicitly disable scopes for public dashboards
|
||||
if (config.featureToggles.scopeFilters && !config.publicDashboardAccessToken) {
|
||||
variableObjects.push(new ScopesVariable({ enable: true }));
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,8 @@ export function createVariablesForDashboard(oldModel: DashboardModel) {
|
||||
// Added temporarily to allow skipping non-compatible variables
|
||||
.filter((v): v is SceneVariable => Boolean(v));
|
||||
|
||||
if (config.featureToggles.scopeFilters) {
|
||||
// Explicitly disable scopes for public dashboards
|
||||
if (config.featureToggles.scopeFilters && !config.publicDashboardAccessToken) {
|
||||
variableObjects.push(new ScopesVariable({ enable: true }));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user