mirror of
https://github.com/go-gitea/gitea
synced 2025-07-16 07:18:37 +00:00
add pagination for admin api get orgs and fix only list public orgs bug (#7742)
This commit is contained in:
committed by
techknowlogick
parent
7b2a39c78b
commit
5b902e2368
@@ -1409,9 +1409,7 @@ type SearchUserOptions struct {
|
||||
}
|
||||
|
||||
func (opts *SearchUserOptions) toConds() builder.Cond {
|
||||
|
||||
var cond = builder.NewCond()
|
||||
cond = cond.And(builder.Eq{"type": opts.Type})
|
||||
var cond builder.Cond = builder.Eq{"type": opts.Type}
|
||||
|
||||
if len(opts.Keyword) > 0 {
|
||||
lowerKeyword := strings.ToLower(opts.Keyword)
|
||||
|
Reference in New Issue
Block a user