From: Jean-Philippe Lang Date: Fri, 16 Dec 2016 07:51:56 +0000 (+0000) Subject: Menu items mapping. X-Git-Tag: 3.4.0~499 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4ee4fad19ae44a03ce8179ff11aa8f7681fc4549;p=redmine.git Menu items mapping. git-svn-id: http://svn.redmine.org/redmine/trunk@16077 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/imports_controller.rb b/app/controllers/imports_controller.rb index 4c9f3e074..fb87c9bc8 100644 --- a/app/controllers/imports_controller.rb +++ b/app/controllers/imports_controller.rb @@ -18,6 +18,7 @@ require 'csv' class ImportsController < ApplicationController + menu_item :issues before_action :find_import, :only => [:show, :settings, :mapping, :run] before_action :authorize_global diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index ad38a15a6..9284b8d09 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -18,7 +18,7 @@ class ProjectsController < ApplicationController menu_item :overview menu_item :settings, :only => :settings - menu_item :projects, :only => [:index, :new, :create] + menu_item :projects, :only => [:index, :new, :copy, :create] before_action :find_project, :except => [ :index, :list, :new, :create, :copy ] before_action :authorize, :except => [ :index, :list, :new, :create, :copy, :archive, :unarchive, :destroy]