]> source.dussan.org Git - gitea.git/commitdiff
bug fixed
authorLunny Xiao <xiaolunwen@gmail.com>
Wed, 23 Apr 2014 09:12:50 +0000 (17:12 +0800)
committerLunny Xiao <xiaolunwen@gmail.com>
Wed, 23 Apr 2014 09:12:50 +0000 (17:12 +0800)
serve.go

index 321227957f80a87d64abe2a18a2ce03eddf2e523..7f8c267c784634256b69613d420936254a155b96 100644 (file)
--- 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)