]> source.dussan.org Git - gitea.git/commit
Calculate `PublicOnly` for org membership only once (#32234)
author6543 <6543@obermui.de>
Mon, 11 Nov 2024 00:38:30 +0000 (01:38 +0100)
committerGitHub <noreply@github.com>
Mon, 11 Nov 2024 00:38:30 +0000 (01:38 +0100)
commit43c252dfeaf9ab03c4db3e7ac5169bc0d69901ac
tree0fdac424af8a41ad804a2f6385666e48e7f12520
parentb1f42a0cdddc8db9eef87041d6bcb328b2ef35fc
Calculate `PublicOnly` for org membership only once (#32234)

Refactoring of #32211

this move the PublicOnly() filter calcuation next to the DB querys and
let it be decided by the Doer

---
*Sponsored by Kithara Software GmbH*
models/organization/org.go
models/organization/org_test.go
models/organization/org_user_test.go
routers/api/v1/org/member.go
routers/web/org/home.go
routers/web/org/members.go
services/context/org.go