Fix org visibility bug when git cloning (#6743) (#6762)

* fix org visibility bug

* fix permission check

* add integration tests

* fix tests

* change test user name for easier maintainance and fix test

* fix test git repo name
This commit is contained in:
Lunny Xiao authored and Lauris BH committed 2019-04-26 15:02:27 +03:00
1 parent e6cd4f3276
commit 81adf6ad86
88 files changed
+2873 -22

No files matched your search

+1
View File
@@ -150,6 +150,7 @@ func repoAssignment() macaron.Handler {
}
return
}
repo.Owner = owner
ctx.Repo.Repository = repo