diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-30 16:34:23 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-30 16:34:23 -0400 |
commit | e938863ae6887f7c3c24145ed3b64dc1d27ee675 (patch) | |
tree | 05285396d03307908f73e6dfee4efe2872c83b0b /routers | |
parent | 2a0066420a9395e5fa5afcd9be4d094a48eee3fa (diff) | |
download | gitea-e938863ae6887f7c3c24145ed3b64dc1d27ee675.tar.gz gitea-e938863ae6887f7c3c24145ed3b64dc1d27ee675.zip |
Mirror fix on UI
Diffstat (limited to 'routers')
-rw-r--r-- | routers/install.go | 2 | ||||
-rw-r--r-- | routers/repo/issue.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/install.go b/routers/install.go index e30c3cfd23..28c2d87f71 100644 --- a/routers/install.go +++ b/routers/install.go @@ -156,7 +156,7 @@ func Install(ctx *middleware.Context, form auth.InstallForm) { base.Cfg.SetValue("server", "DOMAIN", form.Domain) base.Cfg.SetValue("server", "ROOT_URL", form.AppUrl) - if len(form.Host) > 0 { + if len(strings.TrimSpace(form.SmtpHost)) > 0 { base.Cfg.SetValue("mailer", "ENABLED", "true") base.Cfg.SetValue("mailer", "HOST", form.SmtpHost) base.Cfg.SetValue("mailer", "USER", form.SmtpEmail) diff --git a/routers/repo/issue.go b/routers/repo/issue.go index f2d8959a04..6cad2c25d2 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -164,7 +164,7 @@ func ViewIssue(ctx *middleware.Context, params martini.Params) { ctx.Data["Title"] = issue.Name ctx.Data["Issue"] = issue ctx.Data["Comments"] = comments - ctx.Data["IsIssueOwner"] = ctx.Repo.IsOwner || issue.PosterId == ctx.User.Id + ctx.Data["IsIssueOwner"] = ctx.Repo.IsOwner || (ctx.IsSigned && issue.PosterId == ctx.User.Id) ctx.Data["IsRepoToolbarIssues"] = true ctx.Data["IsRepoToolbarIssuesList"] = false ctx.HTML(200, "issue/view") |