diff options
author | David Svantesson <davidsvantesson@gmail.com> | 2019-09-24 03:30:40 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-09-24 09:30:40 +0800 |
commit | 730065a3dc72683460b95ba1486dba8ec355a373 (patch) | |
tree | ce6a655a510ec3c54b31e077282bb3bb26aa4014 /modules/context/repo.go | |
parent | b6cfca62406eb7a0f7f294f40edb0c191dd3be57 (diff) | |
download | gitea-730065a3dc72683460b95ba1486dba8ec355a373.tar.gz gitea-730065a3dc72683460b95ba1486dba8ec355a373.zip |
Do only show teams access for organization repositories, not for personal repositories (#8265)
Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
Diffstat (limited to 'modules/context/repo.go')
-rw-r--r-- | modules/context/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go index 3ef726f2e8..3caf583f83 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -395,6 +395,7 @@ func RepoAssignment() macaron.Handler { ctx.Data["Owner"] = ctx.Repo.Repository.Owner ctx.Data["IsRepositoryOwner"] = ctx.Repo.IsOwner() ctx.Data["IsRepositoryAdmin"] = ctx.Repo.IsAdmin() + ctx.Data["RepoOwnerIsOrganization"] = repo.Owner.IsOrganization() ctx.Data["CanWriteCode"] = ctx.Repo.CanWrite(models.UnitTypeCode) ctx.Data["CanWriteIssues"] = ctx.Repo.CanWrite(models.UnitTypeIssues) ctx.Data["CanWritePulls"] = ctx.Repo.CanWrite(models.UnitTypePullRequests) |