Disable sign out button in case of auth proxy enabled

This commit is contained in:
shoonoise
2015-11-26 17:56:45 +03:00
parent 9e2ef543ed
commit 5cf3425b93
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -111,6 +111,7 @@ func getFrontendSettingsMap(c *middleware.Context) (map[string]interface{}, erro
"datasources": datasources,
"appSubUrl": setting.AppSubUrl,
"allowOrgCreate": (setting.AllowUserOrgCreate && c.IsSignedIn) || c.IsGrafanaAdmin,
"authProxyEnabled": setting.AuthProxyEnabled,
"buildInfo": map[string]interface{}{
"version": setting.BuildVersion,
"commit": setting.BuildCommit,