mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Allow non-FGAC fallback to server admin role (#42175)
This commit is contained in:
parent
b7e1f5f9ce
commit
143bc5c4ea
@ -74,7 +74,11 @@ export class ContextSrv {
|
||||
}
|
||||
|
||||
hasRole(role: string) {
|
||||
return this.user.orgRole === role;
|
||||
if (role === 'ServerAdmin') {
|
||||
return this.isGrafanaAdmin;
|
||||
} else {
|
||||
return this.user.orgRole === role;
|
||||
}
|
||||
}
|
||||
|
||||
accessControlEnabled(): boolean {
|
||||
|
Loading…
Reference in New Issue
Block a user