summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-14 08:30:35 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-14 08:30:35 -0400
commitb0084b1adcc5c446387f90a87100c1f97b4e71ec (patch)
treedbfee82b3a54f6fb9eb5394a05af617297840936 /modules
parent5ed5aa5228feba935679df8cb676af62018cc25d (diff)
downloadgitea-b0084b1adcc5c446387f90a87100c1f97b4e71ec.tar.gz
gitea-b0084b1adcc5c446387f90a87100c1f97b4e71ec.zip
Litte bug fix
Diffstat (limited to 'modules')
-rw-r--r--modules/middleware/repo.go2
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
}