summaryrefslogtreecommitdiffstats
path: root/modules/middleware
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2015-02-07 10:46:57 -0500
committerUnknwon <joe2010xtmf@163.com>2015-02-07 10:46:57 -0500
commit2a2596fe615e4f18e0aff02cc8a016fea0463849 (patch)
treec4a22ca4a195fa4ccdbfee80bae83a1a309548e5 /modules/middleware
parent3f2e99962cd466da2eb09fe4719f258e6f7a39e4 (diff)
downloadgitea-2a2596fe615e4f18e0aff02cc8a016fea0463849.tar.gz
gitea-2a2596fe615e4f18e0aff02cc8a016fea0463849.zip
able to disable SSH for #883
Diffstat (limited to 'modules/middleware')
-rw-r--r--modules/middleware/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index d143d8a86b..1ab158dd6d 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -386,6 +386,7 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler {
ctx.Data["IsRepositoryOwner"] = ctx.Repo.IsOwner
ctx.Data["IsRepositoryTrueOwner"] = ctx.Repo.IsTrueOwner
+ ctx.Data["DisableSSH"] = setting.DisableSSH
ctx.Repo.CloneLink, err = repo.CloneLink()
if err != nil {
ctx.Handle(500, "CloneLink", err)