diff options
author | Unknown <joe2010xtmf@163.com> | 2014-07-04 16:48:36 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-07-04 16:48:36 -0400 |
commit | be8ac7fb75a389402929dd726f39bbbbdb9a6531 (patch) | |
tree | add27b884bc67d9f04cc13befe081cd64e0706b3 /models/user.go | |
parent | 7f3015b32b27d18300c0baaf26729a89dec43985 (diff) | |
download | gitea-be8ac7fb75a389402929dd726f39bbbbdb9a6531.tar.gz gitea-be8ac7fb75a389402929dd726f39bbbbdb9a6531.zip |
fix #273
Diffstat (limited to 'models/user.go')
-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 d273d57f9f..b98e81babe 100644 --- a/models/user.go +++ b/models/user.go @@ -215,7 +215,7 @@ func CreateUser(u *User) (*User, error) { // GetUsers returns given number of user objects with offset. func GetUsers(num, offset int) ([]User, error) { users := make([]User, 0, num) - err := x.Limit(num, offset).Asc("id").Find(&users) + err := x.Limit(num, offset).Where("type=0").Asc("id").Find(&users) return users, err } |