summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-16 04:37:07 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-16 04:37:07 -0400
commit6277f8497cab85870e6e4983aca48a1a910a5e73 (patch)
tree78119461b22f212fc3e0379db0951436336422ed
parent7ad05ce210e422b4bcbaf074b90f1ec7ecdeb404 (diff)
downloadgitea-6277f8497cab85870e6e4983aca48a1a910a5e73.tar.gz
gitea-6277f8497cab85870e6e4983aca48a1a910a5e73.zip
Auth problem related #80
-rw-r--r--routers/repo/http.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go
index ab48c6f3d7..c0009f282f 100644
--- a/routers/repo/http.go
+++ b/routers/repo/http.go
@@ -1,3 +1,7 @@
+// Copyright 2014 The Gogs Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
package repo
import (
@@ -54,7 +58,7 @@ func Http(ctx *middleware.Context, params martini.Params) {
}
// only public pull don't need auth
- var askAuth = !(!repo.IsPrivate && isPull)
+ var askAuth = !(!repo.IsPrivate && isPull) || base.Service.RequireSignInView
var authUser *models.User