Lunny Xiao %!s(int64=11) %!d(string=hai) anos
pai
achega
683e58878a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)