From 4e2bb18b227df9a1a05e0a78b6afc4a600961446 Mon Sep 17 00:00:00 2001 From: "t.felgentreff" Date: Wed, 30 Jun 2010 13:05:13 +0000 Subject: [PATCH] add FIXME notice git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1267 7926756e-e54e-46e6-9721-ed318f58905e --- app/controllers/cost_reports_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/cost_reports_controller.rb b/app/controllers/cost_reports_controller.rb index c3c09e72e9..08b0743db2 100644 --- a/app/controllers/cost_reports_controller.rb +++ b/app/controllers/cost_reports_controller.rb @@ -68,8 +68,10 @@ class CostReportsController < ApplicationController end private + ## FIXME: Remove this once we moved to Redmine 1.0 def find_optional_project @project = Project.find(params[:project_id]) unless params[:project_id].blank? + allowed = User.current.allowed_to?({:controller => params[:controller], :action => params[:action]}, @project, :global => true) allowed ? true : deny_access rescue ActiveRecord::RecordNotFound