summaryrefslogtreecommitdiffstats
path: root/models/org.go
diff options
context:
space:
mode:
authorJoseph Crail <jbcrail@gmail.com>2014-12-06 20:22:48 -0500
committerJoseph Crail <jbcrail@gmail.com>2014-12-06 20:22:48 -0500
commit39c068400e9dd3a577580faa41e87140c2d2e499 (patch)
tree96f3d13fa2f884b845c7b1507c1de07927da1617 /models/org.go
parent47e7175b80d1f1bf05bd2da3a38c898596b12835 (diff)
downloadgitea-39c068400e9dd3a577580faa41e87140c2d2e499.tar.gz
gitea-39c068400e9dd3a577580faa41e87140c2d2e499.zip
Fix spelling errors in comments.
Diffstat (limited to 'models/org.go')
-rw-r--r--models/org.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/org.go b/models/org.go
index 90e5a1f3a0..41611f8116 100644
--- a/models/org.go
+++ b/models/org.go
@@ -240,7 +240,7 @@ func IsOrganizationMember(orgId, uid int64) bool {
return has
}
-// IsPublicMembership returns ture if given user public his/her membership.
+// IsPublicMembership returns true if given user public his/her membership.
func IsPublicMembership(orgId, uid int64) bool {
has, _ := x.Where("uid=?", uid).And("org_id=?", orgId).And("is_public=?", true).Get(new(OrgUser))
return has
@@ -861,7 +861,7 @@ func GetTeamMembers(orgId, teamId int64) ([]*User, error) {
return us, err
}
-// GetUserTeams returns all teams that user belongs to in given origanization.
+// GetUserTeams returns all teams that user belongs to in given organization.
func GetUserTeams(orgId, uid int64) ([]*Team, error) {
tus := make([]*TeamUser, 0, 5)
if err := x.Where("uid=?", uid).And("org_id=?", orgId).Find(&tus); err != nil {