You've already forked AstralRinth
forked from didirus/AstralRinth
fix(labrinth): make orgs with a single user and only approved projects visible to non-logged-in people (#4557)
I made a typo on PR https://github.com/modrinth/code/pull/4426 by making the corresponding SQL query filter by projects with an unexisting `public` status, instead of `approved`. During my testing, I used the `archived` status, so I didn't notice it back then.
This commit is contained in:
committed by
GitHub
parent
77afdb1cc4
commit
6dbd1e5236
@@ -377,7 +377,7 @@ pub async fn is_visible_organization(
|
||||
// This is meant to match the same projects as the `Project::is_searchable` method, but we're not using
|
||||
// it here because that'd entail pulling in all projects for the organization
|
||||
let has_searchable_projects = sqlx::query_scalar!(
|
||||
"SELECT TRUE FROM mods WHERE organization_id = $1 AND status IN ('public', 'archived') LIMIT 1",
|
||||
"SELECT TRUE FROM mods WHERE organization_id = $1 AND status IN ('approved', 'archived') LIMIT 1",
|
||||
organization.id as database::models::ids::DBOrganizationId
|
||||
)
|
||||
.fetch_optional(pool)
|
||||
|
||||
Reference in New Issue
Block a user