mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
10 lines
313 B
TypeScript
10 lines
313 B
TypeScript
|
import config from '../../core/config';
|
||
|
|
||
|
// addAccessControlQueryParam appends ?accesscontrol=true to a url when accesscontrol is enabled
|
||
|
export function addAccessControlQueryParam(url: string): string {
|
||
|
if (!config.featureToggles['accesscontrol']) {
|
||
|
return url;
|
||
|
}
|
||
|
return url + '?accesscontrol=true';
|
||
|
}
|