Remove block for authorization

pull/3285/head
Oliver Günther 9 years ago
parent 2a31d9cabd
commit 4255e13144
  1. 4
      lib/api/v3/repositories/revisions_by_work_package_api.rb

@ -34,9 +34,7 @@ module API
class RevisionsByWorkPackageAPI < ::API::OpenProjectAPI
resources :revisions do
before do
authorize(:view_changesets, context: work_package.project) do
raise API::Errors::Unauthorized.new
end
authorize(:view_changesets, context: work_package.project)
end
get do

Loading…
Cancel
Save