fix: oops fixed search not being public
This commit is contained in:
parent
e15952f028
commit
5a19344e02
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ pub async fn search(
|
||||||
AuthIdentity(auth): AuthIdentity,
|
AuthIdentity(auth): AuthIdentity,
|
||||||
Query(page): Query<PaginatedSearch>,
|
Query(page): Query<PaginatedSearch>,
|
||||||
) -> crate::ApiResult<JsonLD<serde_json::Value>> {
|
) -> 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());
|
return Err(crate::ApiError::forbidden());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue