summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-26 19:57:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-06-26 19:57:36 +0000
commit85131b5655746dddf7c5ea43552e20f6992a1709 (patch)
treea3c61a497d1b8f707de42ab571d2a73cad524cd4 /app/controllers
parentf35b9a7968cf4953b56d53dfc8be10605a2d3bdd (diff)
downloadredmine-85131b5655746dddf7c5ea43552e20f6992a1709.tar.gz
redmine-85131b5655746dddf7c5ea43552e20f6992a1709.zip
Merged r16721 (#7068).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@16723 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/news_controller.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb
index 727617cb7..3df9e5e44 100644
--- a/app/controllers/news_controller.rb
+++ b/app/controllers/news_controller.rb
@@ -98,14 +98,4 @@ class NewsController < ApplicationController
@news.destroy
redirect_to project_news_index_path(@project)
end
-
- private
-
- def find_optional_project
- return true unless params[:project_id]
- @project = Project.find(params[:project_id])
- authorize
- rescue ActiveRecord::RecordNotFound
- render_404
- end
end