Fix bug in org user list page

This commit is contained in:
Yang Luo 2023-06-02 22:09:18 +08:00
parent 06543a01d3
commit ed688efdbb

View File

@ -287,7 +287,11 @@ func GetSessionForUser(owner string, offset, limit int, field, value, sortField,
session.Limit(limit, offset)
}
if owner != "" {
if offset == -1 {
session = session.And("owner=?", owner)
} else {
session = session.And("a.owner=?", owner)
}
}
if field != "" && value != "" {
if filterField(field) {