0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-13 08:55:40 +02:00

fix build errors

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-08-14 17:20:45 -04:00
parent ab817e4251
commit 52f6c9bc45
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -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
} }