Added authorization for API show activity endpoint

pull/1575/head
Marek Takac 10 years ago
parent 8cd143eaed
commit 40d01022fb
  1. 1
      lib/api/v3/activities/activities_api.rb

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

Loading…
Cancel
Save