]> source.dussan.org Git - redmine.git/commitdiff
Reverts change in r13428, project can't be found by identifier (#17959).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 5 Oct 2014 13:24:24 +0000 (13:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 5 Oct 2014 13:24:24 +0000 (13:24 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13429 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/previews_controller.rb

index e74d1fe553e3743d7ccc3c7ff5837dd520d8a63c..cd354faab57bb974e4589aa453caa4f1d55a76b9 100644 (file)
@@ -45,7 +45,7 @@ class PreviewsController < ApplicationController
 
   def find_project
     project_id = (params[:issue] && params[:issue][:project_id]) || params[:project_id]
-    @project = Project.visible.find(project_id)
+    @project = Project.find(project_id)
   rescue ActiveRecord::RecordNotFound
     render_404
   end