mirror of
https://github.com/go-gitea/gitea
synced 2025-07-29 21:58:36 +00:00
Show private heatmap on profile to self & admins (#14881)
followup to #14080
This commit is contained in:
@@ -99,9 +99,7 @@ func Profile(ctx *context.Context) {
|
||||
ctx.Data["Owner"] = ctxUser
|
||||
ctx.Data["OpenIDs"] = openIDs
|
||||
|
||||
// no heatmap access for admins; GetUserHeatmapDataByUser ignores the calling user
|
||||
// so everyone would get the same empty heatmap
|
||||
if setting.Service.EnableUserHeatmap && !ctxUser.KeepActivityPrivate {
|
||||
if setting.Service.EnableUserHeatmap {
|
||||
data, err := models.GetUserHeatmapDataByUser(ctxUser, ctx.User)
|
||||
if err != nil {
|
||||
ctx.ServerError("GetUserHeatmapDataByUser", err)
|
||||
|
Reference in New Issue
Block a user