]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/issues_controller.rb
Update to iD v2.18.2
[rails.git] / app / controllers / issues_controller.rb
index 61f466f626a0ef94e27fc908e0b670d0f6aaac82..cd3584f027536b00e067f04050d234893b68f921 100644 (file)
@@ -80,6 +80,8 @@ class IssuesController < ApplicationController
   private
 
   def find_issue
-    @issue = Issue.find(params[:id])
+    @issue = Issue.visible_to(current_user).find(params[:id])
+  rescue ActiveRecord::RecordNotFound
+    redirect_to :controller => "errors", :action => "not_found"
   end
 end