mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 04:11:17 +00:00
In debug mode allow resolving objects without auth
This commit is contained in:
parent
ef5e2d96cd
commit
0972480ce1
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue