summaryrefslogtreecommitdiffstats
path: root/modules/middleware
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-07-06 17:32:36 -0400
committerUnknown <joe2010xtmf@163.com>2014-07-06 17:32:36 -0400
commit097c8e05e6791efe3876eedf989e2b69190f7f8f (patch)
treedcf67952ffbfbfd6cd056006073eda7393b723bc /modules/middleware
parentfd5412ec47018a72c1f05aca487e10ea0a665e45 (diff)
downloadgitea-097c8e05e6791efe3876eedf989e2b69190f7f8f.tar.gz
gitea-097c8e05e6791efe3876eedf989e2b69190f7f8f.zip
Able to set timeout for process monitor
Diffstat (limited to 'modules/middleware')
-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 8aa4a6a8a6..cf8ce412e5 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -82,7 +82,7 @@ func RepoAssignment(redirect bool, args ...bool) martini.Handler {
ctx.Repo.Owner = user
// Organization owner team members are true owners as well.
- if ctx.Repo.Owner.IsOrganization() && ctx.Repo.Owner.IsOrgOwner(ctx.User.Id) {
+ if ctx.IsSigned && ctx.Repo.Owner.IsOrganization() && ctx.Repo.Owner.IsOrgOwner(ctx.User.Id) {
ctx.Repo.IsTrueOwner = true
}