Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/4241'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Sep 8, 2023
2 parents 614a4c1 + 9682fe6 commit 0e21afc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/views/api/traces/_trace.builder
Expand Up @@ -3,6 +3,7 @@
attrs = {
"id" => trace.id,
"name" => trace.name,
"uid" => trace.user_id,
"user" => trace.user.display_name,
"visibility" => trace.visibility,
"pending" => trace.inserted ? "false" : "true",
Expand Down
1 change: 1 addition & 0 deletions test/controllers/api/traces_controller_test.rb
Expand Up @@ -52,6 +52,7 @@ def test_show
auth_header = basic_authorization_header public_trace_file.user.display_name, "test"
get api_trace_path(public_trace_file), :headers => auth_header
assert_response :success
assert_select "gpx_file[id='#{public_trace_file.id}'][uid='#{public_trace_file.user.id}']", 1
end

# Check an anonymous trace can't be specifically fetched by another user
Expand Down

0 comments on commit 0e21afc

Please sign in to comment.