diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-04-01 01:31:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 19:31:53 +0200 |
commit | 420851ca1ff5c97cc31930f022daaff6f484793b (patch) | |
tree | 8fbf05e426c30db2ad2ea706d53cf2c60d4989c3 /routers/web/user | |
parent | c88547ce71a554091930e129c20776daf6da35ac (diff) | |
download | gitea-420851ca1ff5c97cc31930f022daaff6f484793b.tar.gz gitea-420851ca1ff5c97cc31930f022daaff6f484793b.zip |
Fix global packages enabled avaiable (#19276)
Fix #19275
Diffstat (limited to 'routers/web/user')
-rw-r--r-- | routers/web/user/profile.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index f628840375..85870eddf5 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -280,6 +280,7 @@ func Profile(ctx *context.Context) { pager.AddParam(ctx, "language", "Language") } ctx.Data["Page"] = pager + ctx.Data["IsPackageEnabled"] = setting.Packages.Enabled ctx.Data["ShowUserEmail"] = len(ctx.ContextUser.Email) > 0 && ctx.IsSigned && (!ctx.ContextUser.KeepEmailPrivate || ctx.ContextUser.ID == ctx.Doer.ID) |