Skip to content

Commit

Permalink
ensure authorized user passed to world map list correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Oct 7, 2024
1 parent d685440 commit 0464c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/v0/devices/_world_map_list.jbuilder
Original file line number Diff line number Diff line change
@@ -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 }

0 comments on commit 0464c84

Please sign in to comment.