Merge branch 'master' into alerting_reminder
* master: (30 commits) changelog: add notes about closing #11882 renamed variable in tests added comment, variableChange -> variableValueChange added a test added if to check if new variable has been added Gravatar fallback does not respect 'AppSubUrl'-setting (#12149) change admin password after first login changelog: adds note about closing #11958 revert: reverted singlestat panel position change PR #12004 Revert "provisioning: turn relative symlinked path into absolut paths" provisioning: turn relative symlinked path into absolut paths changelog: adds note about closing #11670 elasticsearch: sort bucket keys to fix issue wth response parser tests docs: what's new in v5.2 changelog: add notes about closing #11167 docs: docker secrets support. (#12141) alerting: show alerts for user with Viewer role datasource: added option no-direct-access to ds-http-settings diretive, closes #12138 provisioning: adds fallback if evalsymlink/abs fails tests: uses different paths depending on os ...
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ func GetAlerts(c *m.ReqContext) Response {
|
||||
DashboardIds: dashboardIDs,
|
||||
Type: string(search.DashHitDB),
|
||||
FolderIds: folderIDs,
|
||||
Permission: m.PERMISSION_EDIT,
|
||||
Permission: m.PERMISSION_VIEW,
|
||||
}
|
||||
|
||||
err := bus.Dispatch(&searchQuery)
|
||||
|
||||
@@ -77,6 +77,9 @@ func (hs *HTTPServer) registerRoutes() {
|
||||
r.Get("/dashboards/", reqSignedIn, Index)
|
||||
r.Get("/dashboards/*", reqSignedIn, Index)
|
||||
|
||||
r.Get("/explore/", reqEditorRole, Index)
|
||||
r.Get("/explore/*", reqEditorRole, Index)
|
||||
|
||||
r.Get("/playlists/", reqSignedIn, Index)
|
||||
r.Get("/playlists/*", reqSignedIn, Index)
|
||||
r.Get("/alerting/", reqSignedIn, Index)
|
||||
|
||||
@@ -52,7 +52,7 @@ type UserStars struct {
|
||||
|
||||
func GetGravatarUrl(text string) string {
|
||||
if setting.DisableGravatar {
|
||||
return "/public/img/user_profile.png"
|
||||
return setting.AppSubUrl + "/public/img/user_profile.png"
|
||||
}
|
||||
|
||||
if text == "" {
|
||||
|
||||
+1
-1
@@ -128,7 +128,7 @@ func setIndexViewData(c *m.ReqContext) (*dtos.IndexViewData, error) {
|
||||
Children: dashboardChildNavs,
|
||||
})
|
||||
|
||||
if setting.ExploreEnabled {
|
||||
if setting.ExploreEnabled && (c.OrgRole == m.ROLE_ADMIN || c.OrgRole == m.ROLE_EDITOR) {
|
||||
data.NavTree = append(data.NavTree, &dtos.NavLink{
|
||||
Text: "Explore",
|
||||
Id: "explore",
|
||||
|
||||
Reference in New Issue
Block a user