This commit is contained in:
Unknown 2014-05-13 19:26:13 -04:00
parent f276b37bbb
commit 33ec0632ff
4 changed files with 12 additions and 2 deletions

View file

@ -99,6 +99,11 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
return
}
// Check if the mirror repository owner(mirror repository doesn't have access).
if !ctx.Repo.IsOwner && repo.OwnerId == ctx.User.Id {
ctx.Repo.IsOwner = true
}
// Check access.
if repo.IsPrivate && !ctx.Repo.IsOwner {
if ctx.User == nil {