From 5a19344e02f2887b75e35c4211ef3ca2793451b5 Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 11 Aug 2024 18:18:22 +0200 Subject: [PATCH] fix: oops fixed search not being public --- upub/routes/src/activitypub/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upub/routes/src/activitypub/application.rs b/upub/routes/src/activitypub/application.rs index 2984bca..b03d7e2 100644 --- a/upub/routes/src/activitypub/application.rs +++ b/upub/routes/src/activitypub/application.rs @@ -47,7 +47,7 @@ pub async fn search( AuthIdentity(auth): AuthIdentity, Query(page): Query, ) -> crate::ApiResult> { - 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()); }