4408: Workbench Collection sharing allows file downloads again.
authorBrett Smith <brett@curoverse.com>
Thu, 6 Nov 2014 16:59:00 +0000 (11:59 -0500)
committerBrett Smith <brett@curoverse.com>
Thu, 6 Nov 2014 20:31:45 +0000 (15:31 -0500)
commitc53b0474744b0e2e863c7aa3c4a148152f4b0e63
tree0d966df0dd9b818e1e109608e437b25c5010e6a2
parent308a6da1a9fd716f3957b116110a932c08aefafe
4408: Workbench Collection sharing allows file downloads again.

Earlier we refactored our API token loading code to load User.current
to check that it was valid.  This approach doesn't work when we're
presenting shared Collections, because the token usually won't be
scoped to get user information.  Skip the check for this specific
case.
apps/workbench/app/controllers/application_controller.rb
apps/workbench/app/controllers/collections_controller.rb
apps/workbench/test/functional/collections_controller_test.rb
apps/workbench/test/integration/collections_test.rb