]> git.openstreetmap.org Git - rails.git/blob - app/controllers/issues/reporters_controller.rb
Add empty issue reporters page
[rails.git] / app / controllers / issues / reporters_controller.rb
1 module Issues
2   class ReportersController < ApplicationController
3     layout "site"
4
5     before_action :authorize_web
6     before_action :set_locale
7     before_action :check_database_readable
8
9     authorize_resource :issue
10
11     def index
12       @issue = Issue.visible_to(current_user).find(params[:issue_id])
13     rescue ActiveRecord::RecordNotFound
14       redirect_to :controller => "/errors", :action => "not_found"
15     end
16   end
17 end