mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 19:47:07 +09:00
Litte bug fix
This commit is contained in:
1 parent
5ed5aa5228
commit
b0084b1adc
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user