summaryrefslogtreecommitdiffstats
path: root/serve.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-04-23 17:12:50 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-04-23 17:12:50 +0800
commit683e58878a3f1a36db29a252dd6ba0551210b1c1 (patch)
tree7bf663b066d877aeb31bd9dba98358edbdacc65a /serve.go
parentdbdaf934e1b8fab06361266268bb55d30b352f37 (diff)
downloadgitea-683e58878a3f1a36db29a252dd6ba0551210b1c1.tar.gz
gitea-683e58878a3f1a36db29a252dd6ba0551210b1c1.zip
bug fixed
Diffstat (limited to 'serve.go')
-rw-r--r--serve.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/serve.go b/serve.go
index 321227957f..7f8c267c78 100644
--- a/serve.go
+++ b/serve.go
@@ -159,7 +159,7 @@ func runServ(k *cli.Context) {
qlog.Fatal(err)
}
if !has {
- has, err = models.HasAccess(user.Name, repoPath, models.AU_WRITABLE)
+ has, err = models.HasAccess(user.Name, path.Join(repoUserName, repoName), models.AU_WRITABLE)
if err != nil {
println("Internal error")
qlog.Fatal(err)