]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/issues_controller.rb
Add database checks to issue and report controllers
[rails.git] / app / controllers / issues_controller.rb
index 10a6dc09ba603203fb43293a7b32a7dd0c8fd09f..b253ec5e1510f8db162513a363815532c301f1e3 100644 (file)
@@ -3,10 +3,12 @@ class IssuesController < ApplicationController
 
   before_action :authorize_web
   before_action :set_locale
+  before_action :check_database_readable
 
   authorize_resource
 
   before_action :find_issue, :only => [:show, :resolve, :reopen, :ignore]
+  before_action :check_database_writable, :only => [:resolve, :ignore, :reopen]
 
   def index
     @title = t ".title"