浏览代码

bug fixed

Lunny Xiao 11 年之前
父节点
当前提交
683e58878a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      serve.go

+ 1 - 1
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)