Fix #183
This commit is contained in:
parent
f276b37bbb
commit
33ec0632ff
4 changed files with 12 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue