diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-01-19 22:16:10 -0700 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-20 13:16:10 +0800 |
commit | 74bbec3bf9f5e306248bf80808f93e116c232306 (patch) | |
tree | 6d3ec9edd609e5cb2d90dd892f308761633cd2d2 /models | |
parent | fcf02e4961beb98cf1bc0f60537589e41a871369 (diff) | |
download | gitea-74bbec3bf9f5e306248bf80808f93e116c232306.tar.gz gitea-74bbec3bf9f5e306248bf80808f93e116c232306.zip |
Fix permission bugs in team API (#647)
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 2 |
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) } |