diff options
Diffstat (limited to 'modules/middleware/repo.go')
-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 } |