mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
* Add RBAC section to settings * Default to RBAC enabled settings to true * Update tests to respect RBAC Co-authored-by: Karl Persson <kalle.persson@grafana.com>
10 lines
306 B
TypeScript
10 lines
306 B
TypeScript
import config from '../../core/config';
|
|
|
|
// accessControlQueryParam adds an additional accesscontrol=true param to params when accesscontrol is enabled
|
|
export function accessControlQueryParam(params = {}) {
|
|
if (!config.rbacEnabled) {
|
|
return params;
|
|
}
|
|
return { ...params, accesscontrol: true };
|
|
}
|