diff options
author | Unknown <joe2010xtmf@163.com> | 2014-07-06 17:32:36 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-07-06 17:32:36 -0400 |
commit | 097c8e05e6791efe3876eedf989e2b69190f7f8f (patch) | |
tree | dcf67952ffbfbfd6cd056006073eda7393b723bc /modules/middleware | |
parent | fd5412ec47018a72c1f05aca487e10ea0a665e45 (diff) | |
download | gitea-097c8e05e6791efe3876eedf989e2b69190f7f8f.tar.gz gitea-097c8e05e6791efe3876eedf989e2b69190f7f8f.zip |
Able to set timeout for process monitor
Diffstat (limited to 'modules/middleware')
-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 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 } |