diff --git a/app/views/v0/devices/_world_map_list.jbuilder b/app/views/v0/devices/_world_map_list.jbuilder index 28c642db..b690b676 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, partial: 'device', as: :device, local_assigns: { with_data: false, with_postprocessing: false, slim_owner: true, never_authorized: true } \ No newline at end of file +json.array! Device.for_world_map, partial: 'device', as: :device, local_assigns: { with_data: false, with_postprocessing: false, slim_owner: true, never_authorized: never_authorized } \ No newline at end of file diff --git a/app/views/v0/devices/fresh_world_map.jbuilder b/app/views/v0/devices/fresh_world_map.jbuilder index 021cc4c5..bb646244 100644 --- a/app/views/v0/devices/fresh_world_map.jbuilder +++ b/app/views/v0/devices/fresh_world_map.jbuilder @@ -1 +1 @@ -json.partial! 'devices/world_map_list' \ No newline at end of file +json.partial! 'devices/world_map_list', { never_authorized: false } \ No newline at end of file diff --git a/app/views/v0/devices/world_map.jbuilder b/app/views/v0/devices/world_map.jbuilder index ac9a2abd..f72cd4a4 100644 --- a/app/views/v0/devices/world_map.jbuilder +++ b/app/views/v0/devices/world_map.jbuilder @@ -1,3 +1,3 @@ json.cache! ["world_map"], expires_in: 1.minute do - json.partial! 'devices/world_map_list' + json.partial! 'devices/world_map_list', { never_authorized: true} end \ No newline at end of file