summaryrefslogtreecommitdiffstats
path: root/models/org.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-02-24 01:25:09 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-02-24 14:25:09 +0800
commit76057105ca73b9354bec01be3e7b5039de80c1e0 (patch)
tree16dfaa80ad92209ee145b1c8f9c5549d337ee18e /models/org.go
parentf1ab906c510d789e2b42745a3ccdbba7e2c7ec70 (diff)
downloadgitea-76057105ca73b9354bec01be3e7b5039de80c1e0.tar.gz
gitea-76057105ca73b9354bec01be3e7b5039de80c1e0.zip
Remove unnecessary loads in org_team (#1035)
Diffstat (limited to 'models/org.go')
-rw-r--r--models/org.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/org.go b/models/org.go
index 9fd81c1c0a..49dcfcaa62 100644
--- a/models/org.go
+++ b/models/org.go
@@ -517,7 +517,7 @@ func RemoveOrgUser(orgID, userID int64) error {
return err
}
for _, t := range teams {
- if err = removeTeamMember(sess, org.ID, t.ID, userID); err != nil {
+ if err = removeTeamMember(sess, t, userID); err != nil {
return err
}
}