add FIXME notice

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1267 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
t.felgentreff 15 years ago
parent e616da490c
commit 4e2bb18b22
  1. 2
      app/controllers/cost_reports_controller.rb

@ -68,8 +68,10 @@ class CostReportsController < ApplicationController
end end
private private
## FIXME: Remove this once we moved to Redmine 1.0
def find_optional_project def find_optional_project
@project = Project.find(params[:project_id]) unless params[:project_id].blank? @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 = User.current.allowed_to?({:controller => params[:controller], :action => params[:action]}, @project, :global => true)
allowed ? true : deny_access allowed ? true : deny_access
rescue ActiveRecord::RecordNotFound rescue ActiveRecord::RecordNotFound

Loading…
Cancel
Save