We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da24b32 commit ca09276Copy full SHA for ca09276
routers/web/user/code.go
@@ -33,6 +33,13 @@ func CodeSearch(ctx *context.Context) {
33
ctx.ServerError("LoadHeaderCount", err)
34
return
35
}
36
+ if ctx.ContextUser.IsOrganization() {
37
+ _, err := shared_user.PrepareOrgHeader(ctx)
38
+ if err != nil {
39
+ ctx.ServerError("PrepareOrgHeader", err)
40
+ return
41
+ }
42
43
44
ctx.Data["IsPackageEnabled"] = setting.Packages.Enabled
45
ctx.Data["Title"] = ctx.Tr("explore.code")
0 commit comments