summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-01-19 22:16:10 -0700
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-20 13:16:10 +0800
commit74bbec3bf9f5e306248bf80808f93e116c232306 (patch)
tree6d3ec9edd609e5cb2d90dd892f308761633cd2d2 /models
parentfcf02e4961beb98cf1bc0f60537589e41a871369 (diff)
downloadgitea-74bbec3bf9f5e306248bf80808f93e116c232306.tar.gz
gitea-74bbec3bf9f5e306248bf80808f93e116c232306.zip
Fix permission bugs in team API (#647)
Diffstat (limited to 'models')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index 8b20d7e0ba..86573dbda4 100644
--- a/models/user.go
+++ b/models/user.go
@@ -470,7 +470,7 @@ func (u *User) IsUserOrgOwner(orgID int64) bool {
return IsOrganizationOwner(orgID, u.ID)
}
-// IsPublicMember returns true if user public his/her membership in give organization.
+// IsPublicMember returns true if user public his/her membership in given organization.
func (u *User) IsPublicMember(orgID int64) bool {
return IsPublicMembership(orgID, u.ID)
}