mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Panel Menu: Use config explore enabled as an override to access control (#57225)
* Use config explore as an override to access control * Change logic to need something explicitly false * Keep logic consistent
This commit is contained in:
parent
bdb97496ec
commit
d81a3e524d
@ -157,7 +157,7 @@ export class ContextSrv {
|
||||
|
||||
hasAccessToExplore() {
|
||||
if (this.accessControlEnabled()) {
|
||||
return this.hasPermission(AccessControlAction.DataSourcesExplore);
|
||||
return this.hasPermission(AccessControlAction.DataSourcesExplore) && config.exploreEnabled;
|
||||
}
|
||||
return (this.isEditor || config.viewersCanEdit) && config.exploreEnabled;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user