From 70793075fcb00ba6c1e7d19327d46da6d25d7158 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 2 Jun 2026 08:21:39 -0500 Subject: [PATCH] fix(build): use db.Find for org list, remove unused org_model import Co-Authored-By: Claude Opus 4.6 (1M context) --- routers/web/org/setting.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routers/web/org/setting.go b/routers/web/org/setting.go index 80e2525f9a..2451bc2542 100644 --- a/routers/web/org/setting.go +++ b/routers/web/org/setting.go @@ -50,11 +50,11 @@ func Settings(ctx *context.Context) { ctx.Data["ContextUser"] = ctx.ContextUser ctx.Data["ParentOrgID"] = ctx.Org.Organization.ParentOrgID - // Load available parent orgs (all orgs the current user owns, excluding self). + // Load available parent orgs (all orgs the current user belongs to, excluding self). if ctx.Doer.IsAdmin || ctx.Org.IsOwner { - orgs, _ := org_model.FindOrgs(ctx, org_model.FindOrgOptions{ - UserID: ctx.Doer.ID, - IncludePrivate: true, + orgs, _ := db.Find[org_model.Organization](ctx, org_model.FindOrgOptions{ + UserID: ctx.Doer.ID, + IncludeVisibility: structs.VisibleTypePrivate, }) var parentCandidates []*org_model.Organization for _, o := range orgs { -- 2.52.0