forked from forgejo/forgejo
Litte bug fix
This commit is contained in:
parent
5ed5aa5228
commit
b0084b1adc
2 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
|
|||
}
|
||||
|
||||
// Check if the mirror repository owner(mirror repository doesn't have access).
|
||||
if !ctx.Repo.IsOwner && repo.OwnerId == ctx.User.Id {
|
||||
if ctx.IsSigned && !ctx.Repo.IsOwner && repo.OwnerId == ctx.User.Id {
|
||||
ctx.Repo.IsOwner = true
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue