aboutsummaryrefslogtreecommitdiffstats
path: root/routers/user/home.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/home.go')
-rw-r--r--routers/user/home.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 2fc0c60aad..4e5fc3e4df 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -112,7 +112,9 @@ func Dashboard(ctx *context.Context) {
ctx.Data["PageIsDashboard"] = true
ctx.Data["PageIsNews"] = true
ctx.Data["SearchLimit"] = setting.UI.User.RepoPagingNum
- ctx.Data["EnableHeatmap"] = setting.Service.EnableUserHeatmap
+ // no heatmap access for admins; GetUserHeatmapDataByUser ignores the calling user
+ // so everyone would get the same empty heatmap
+ ctx.Data["EnableHeatmap"] = setting.Service.EnableUserHeatmap && !ctxUser.KeepActivityPrivate
ctx.Data["HeatmapUser"] = ctxUser.Name
var err error