mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
Fix bug in org user list page
This commit is contained in:
parent
06543a01d3
commit
ed688efdbb
@ -287,7 +287,11 @@ func GetSessionForUser(owner string, offset, limit int, field, value, sortField,
|
||||
session.Limit(limit, offset)
|
||||
}
|
||||
if owner != "" {
|
||||
session = session.And("owner=?", owner)
|
||||
if offset == -1 {
|
||||
session = session.And("owner=?", owner)
|
||||
} else {
|
||||
session = session.And("a.owner=?", owner)
|
||||
}
|
||||
}
|
||||
if field != "" && value != "" {
|
||||
if filterField(field) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user