diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-10-12 02:39:00 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-10-12 02:39:00 -0400 |
commit | c04aea8d9d797c0930bedc5038b466dc661774da (patch) | |
tree | cc438535af7f6d695c7f7377daf6fba828e703cb /models/org.go | |
parent | 0d7b9065c60604a1ac37af595878d86b0c0679ad (diff) | |
download | gitea-c04aea8d9d797c0930bedc5038b466dc661774da.tar.gz gitea-c04aea8d9d797c0930bedc5038b466dc661774da.zip |
Fix #540
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/org.go b/models/org.go index 08d276bf86..3232bf2ac1 100644 --- a/models/org.go +++ b/models/org.go @@ -846,7 +846,7 @@ func IsTeamMember(orgId, teamId, uid int64) bool { // GetTeamMembers returns all members in given team of organization. func GetTeamMembers(orgId, teamId int64) ([]*User, error) { us := make([]*User, 0, 10) - err := x.Sql("SELECT * FROM user JOIN team_user ON team_user.team_id = ? AND team_user.uid = user.id", teamId).Find(&us) + err := x.Sql("SELECT * FROM `user` JOIN `team_user` ON `team_user`.`team_id` = ? AND `team_user`.`uid` = `user`.`id`", teamId).Find(&us) return us, err } |