mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-13 06:46:03 +02:00
fix build errors
This commit is contained in:
parent
ab817e4251
commit
52f6c9bc45
@ -1,6 +1,7 @@
|
|||||||
package group
|
package group
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"code.gitea.io/gitea/models/perm"
|
||||||
"context"
|
"context"
|
||||||
"slices"
|
"slices"
|
||||||
|
|
||||||
@ -115,7 +116,7 @@ func (w *WebSearchGroup) doLoadChildren(opts *WebSearchOptions) error {
|
|||||||
w.LatestCommitStatus = latestCommitStatuses[latestIdx]
|
w.LatestCommitStatus = latestCommitStatuses[latestIdx]
|
||||||
}
|
}
|
||||||
w.Subgroups = make([]*WebSearchGroup, 0)
|
w.Subgroups = make([]*WebSearchGroup, 0)
|
||||||
groups, err := group_model.FindGroupsByCond(opts.Ctx, opts.GroupOpts, group_model.AccessibleGroupCondition(opts.Actor, unit.TypeInvalid))
|
groups, err := group_model.FindGroupsByCond(opts.Ctx, opts.GroupOpts, group_model.AccessibleGroupCondition(opts.Actor, unit.TypeInvalid, perm.AccessModeRead))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user