From 0464c84fbb4f1ea7150cf0775ce345342d5e11a1 Mon Sep 17 00:00:00 2001 From: Tim Cowlishaw Date: Mon, 7 Oct 2024 16:01:14 +0200 Subject: [PATCH] ensure authorized user passed to world map list correctly --- app/views/v0/devices/_world_map_list.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/v0/devices/_world_map_list.jbuilder b/app/views/v0/devices/_world_map_list.jbuilder index 7156198f..d5e580bd 100644 --- a/app/views/v0/devices/_world_map_list.jbuilder +++ b/app/views/v0/devices/_world_map_list.jbuilder @@ -1 +1 @@ -json.array! Device.for_world_map(!never_authorized && current_user), partial: 'device', as: :device, local_assigns: { with_data: false, with_postprocessing: false, slim_owner: true, never_authorized: never_authorized } +json.array! Device.for_world_map(never_authorized ? nil : current_user), partial: 'device', as: :device, local_assigns: { with_data: false, with_postprocessing: false, slim_owner: true, never_authorized: never_authorized }