summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-22 04:44:57 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-22 04:44:57 -0400
commit932f717adb1cb1738415fcddaf5eb3c0e4a60fc2 (patch)
tree60a13dd51c6016901f0f262b00635efa25bf1a93 /modules
parentf219ddcf4ef13b9d5de129da4eb2b56dbc899d61 (diff)
downloadgitea-932f717adb1cb1738415fcddaf5eb3c0e4a60fc2.tar.gz
gitea-932f717adb1cb1738415fcddaf5eb3c0e4a60fc2.zip
Fixing bug
Diffstat (limited to 'modules')
-rw-r--r--modules/middleware/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index a9a90e3ff5..3864caaf80 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -54,7 +54,7 @@ func RepoAssignment(redirect bool) martini.Handler {
ctx.Repo.Owner = user
// get repository
- repo, err := models.GetRepositoryByName(user, params["reponame"])
+ repo, err := models.GetRepositoryByName(user.Id, params["reponame"])
if err != nil {
if redirect {
ctx.Redirect("/")