Allow non-FGAC fallback to server admin role (#42175)

This commit is contained in:
Jesse Weaver
2021-11-30 16:26:05 -07:00
committed by GitHub
parent b7e1f5f9ce
commit 143bc5c4ea
+5 -1
View File
@@ -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 {