diff --git a/app/controllers/katello/notices_controller.rb b/app/controllers/katello/notices_controller.rb index 527b532167a..6d05d662cda 100644 --- a/app/controllers/katello/notices_controller.rb +++ b/app/controllers/katello/notices_controller.rb @@ -18,7 +18,6 @@ class NoticesController < Katello::ApplicationController skip_before_filter :authorize, :require_org before_filter :notices_authorize - before_filter :readable_by, :only => [:auto_complete_search] helper_method :sort_column, :sort_direction diff --git a/config/routes.rb b/config/routes.rb index dde179f9abc..4cb47f6131c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -39,9 +39,12 @@ end end - get "notices/note_count" - get "notices/get_new" - get "notices/auto_complete_search" + resources :notices, :only => [] do + collection do + get :get_new + end + end + match 'notices/:id/details' => 'notices#details', :via => :get, :as => 'notices_details' match 'notices' => 'notices#show', :via => :get match 'notices' => 'notices#destroy_all', :via => :delete