diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-14 08:30:35 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-14 08:30:35 -0400 |
commit | b0084b1adcc5c446387f90a87100c1f97b4e71ec (patch) | |
tree | dbfee82b3a54f6fb9eb5394a05af617297840936 /modules | |
parent | 5ed5aa5228feba935679df8cb676af62018cc25d (diff) | |
download | gitea-b0084b1adcc5c446387f90a87100c1f97b4e71ec.tar.gz gitea-b0084b1adcc5c446387f90a87100c1f97b4e71ec.zip |
Litte bug fix
Diffstat (limited to 'modules')
-rw-r--r-- | modules/middleware/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go index cd43539122..863860e7eb 100644 --- a/modules/middleware/repo.go +++ b/modules/middleware/repo.go @@ -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 } |