forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
313 B
9 lines
313 B
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';
|
|
}
|
|
|