fix: oops fixed search not being public

This commit is contained in:
əlemi 2024-08-11 18:18:22 +02:00
parent e15952f028
commit 5a19344e02
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -47,7 +47,7 @@ pub async fn search(
AuthIdentity(auth): AuthIdentity,
Query(page): Query<PaginatedSearch>,
) -> crate::ApiResult<JsonLD<serde_json::Value>> {
if !auth.is_local() && ctx.cfg().security.allow_public_search {
if !auth.is_local() && !ctx.cfg().security.allow_public_search {
return Err(crate::ApiError::forbidden());
}