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

pull/42558/head
Jesse Weaver 4 years ago committed by GitHub
parent b7e1f5f9ce
commit 143bc5c4ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      public/app/core/services/context_srv.ts

@ -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…
Cancel
Save