Skip to content

Commit

Permalink
allow admin access to fresh_world_map
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Mar 18, 2024
1 parent c0eb0cf commit 72c9cdb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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, partial: 'device', as: :device, local_assigns: { with_data: false, with_postprocessing: false, slim_owner: true, never_authorized: true }
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 }
2 changes: 1 addition & 1 deletion app/views/v0/devices/fresh_world_map.jbuilder
Original file line number Diff line number Diff line change
@@ -1 +1 @@
json.partial! 'devices/world_map_list'
json.partial! 'devices/world_map_list', { never_authorized: false }
2 changes: 1 addition & 1 deletion app/views/v0/devices/world_map.jbuilder
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 72c9cdb

Please sign in to comment.