mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 10:17:37 +02:00
Refactor FindOrgOptions to use enum instead of bool, fix membership visibility (#34629)
This commit is contained in:
1 parent
1fe652cd26
commit
f6041441ee
12 files changed
+74
-51
No files matched your search
@@ -120,8 +120,8 @@ func doCheckOrgCounts(username string, orgCounts map[string]int, strict bool, ca
|
||||
})
|
||||
|
||||
orgs, err := db.Find[organization.Organization](db.DefaultContext, organization.FindOrgOptions{
|
||||
UserID: user.ID,
|
||||
IncludePrivate: true,
|
||||
UserID: user.ID,
|
||||
IncludeVisibility: api.VisibleTypePrivate,
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
|
||||
|
||||
Reference in new issue
Block a user