Merge pull request #1575 from opf/feature/api-activities-show-permissions

Added authorization for API show activity endpoint
pull/1582/head
manwithtwowatches 10 years ago
commit 70a3d37090
  1. 1
      lib/api/v3/activities/activities_api.rb

@ -17,6 +17,7 @@ module API
end
get do
authorize(:work_packages, :show, context: @activity.Journalable.project)
@representer.to_json
end

Loading…
Cancel
Save