In debug mode allow resolving objects without auth

This commit is contained in:
Felix Ableitner 2024-09-11 12:32:11 +02:00
parent ef5e2d96cd
commit 0972480ce1

View file

@ -27,7 +27,7 @@ pub async fn resolve_object(
// if there's no personId then the JWT was missing or invalid.
let is_authenticated = local_user_view.is_some();
let res = if is_authenticated {
let res = if is_authenticated || cfg!(debug_assertions) {
// user is fully authenticated; allow remote lookups as well.
search_query_to_object_id(data.q.clone(), &context).await
} else {