Search: apply security in before returning results (#45430)

Co-authored-by: Artur Wierzbicki <wierzbicki.artur.94@gmail.com>
This commit is contained in:
Ryan McKinley
2022-02-16 09:47:41 -08:00
committed by GitHub
parent a2b391912a
commit 1554bffcb8
4 changed files with 115 additions and 9 deletions

View File

@@ -11,7 +11,6 @@ import {
import { GrafanaDatasource } from '../datasource';
import { defaultQuery, GrafanaQuery, GrafanaQueryType } from '../types';
import { config, getBackendSrv, getDataSourceSrv } from '@grafana/runtime';
import { contextSrv } from 'app/core/services/context_srv';
type Props = QueryEditorProps<GrafanaDatasource, GrafanaQuery>;
@@ -47,7 +46,7 @@ export class QueryEditor extends PureComponent<Props, State> {
constructor(props: Props) {
super(props);
if (config.featureToggles.panelTitleSearch && contextSrv.isGrafanaAdmin) {
if (config.featureToggles.panelTitleSearch) {
this.queryTypes.push({
label: 'Search',
value: GrafanaQueryType.Search,