diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-05-20 18:20:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-20 12:20:51 +0200 |
commit | d81e31ad7826a81fc7139f329f250594610a274b (patch) | |
tree | b7bd2717e3d1c143665f776c9629060191952dd5 /routers | |
parent | 63f6e6c0bd6a5314b76b7598dee77ceee1dde81a (diff) | |
download | gitea-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.go | 2 |
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) |