diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-26 19:40:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-26 19:40:16 +0000 |
commit | d5bec063e7b656974b09f9d5f9bf29326a041b7c (patch) | |
tree | f2e0822e8a625c0c22ccc106ff1d83d931713bec /app | |
parent | f3523f25fd9714c462076ce202d5d6d09e192c26 (diff) | |
download | redmine-d5bec063e7b656974b09f9d5f9bf29326a041b7c.tar.gz redmine-d5bec063e7b656974b09f9d5f9bf29326a041b7c.zip |
Use ApplicationController#find_optional_project instead.
git-svn-id: http://svn.redmine.org/redmine/trunk@16720 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/queries_controller.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/app/controllers/queries_controller.rb b/app/controllers/queries_controller.rb index 54f695fd7..9a6102a16 100644 --- a/app/controllers/queries_controller.rb +++ b/app/controllers/queries_controller.rb @@ -114,13 +114,6 @@ class QueriesController < ApplicationController render_404 end - def find_optional_project - @project = Project.find(params[:project_id]) if params[:project_id] - render_403 unless User.current.allowed_to?(:save_queries, @project, :global => true) - rescue ActiveRecord::RecordNotFound - render_404 - end - def update_query_from_params @query.project = params[:query_is_for_all] ? nil : @project @query.build_from_params(params) |