summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-05-20 18:20:51 +0800
committerGitHub <noreply@github.com>2022-05-20 12:20:51 +0200
commitd81e31ad7826a81fc7139f329f250594610a274b (patch)
treeb7bd2717e3d1c143665f776c9629060191952dd5 /routers
parent63f6e6c0bd6a5314b76b7598dee77ceee1dde81a (diff)
downloadgitea-d81e31ad7826a81fc7139f329f250594610a274b.tar.gz
gitea-d81e31ad7826a81fc7139f329f250594610a274b.zip
Move org functions (#19753)
* Move org functions * Fix comment
Diffstat (limited to 'routers')
-rw-r--r--routers/web/org/members.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/org/members.go b/routers/web/org/members.go
index add8e724bd..374c893575 100644
--- a/routers/web/org/members.go
+++ b/routers/web/org/members.go
@@ -63,7 +63,7 @@ func Members(ctx *context.Context) {
ctx.Data["Page"] = pager
ctx.Data["Members"] = members
ctx.Data["MembersIsPublicMember"] = membersIsPublic
- ctx.Data["MembersIsUserOrgOwner"] = models.IsUserOrgOwner(members, org.ID)
+ ctx.Data["MembersIsUserOrgOwner"] = organization.IsUserOrgOwner(members, org.ID)
ctx.Data["MembersTwoFaStatus"] = members.GetTwoFaStatus()
ctx.HTML(http.StatusOK, tplMembers)