diff options
author | Go MAEDA <maeda@farend.jp> | 2019-05-09 07:40:06 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-05-09 07:40:06 +0000 |
commit | b540046ed7084ba50f5ca280f3ffae0751af8142 (patch) | |
tree | 4bc946090d4940a219e84f70ca72c5655de5be42 /lib/redmine.rb | |
parent | bcc60805c97104f44a37b92321d7aa1e5c51b622 (diff) | |
download | redmine-b540046ed7084ba50f5ca280f3ffae0751af8142.tar.gz redmine-b540046ed7084ba50f5ca280f3ffae0751af8142.zip |
Generalize issues imports (#28234).
Extend import controller to support arbitrary imports based on Import subclasses. This way, we may add other kinds of imports, by providing some views and a custom import class. This may also be done from within plugins.
Patch by Gregor Schmidt.
git-svn-id: http://svn.redmine.org/redmine/trunk@18145 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r-- | lib/redmine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index 45e9f1024..2de351c07 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -118,7 +118,7 @@ Redmine::AccessControl.map do |map| map.permission :view_issue_watchers, {}, :read => true map.permission :add_issue_watchers, {:watchers => [:new, :create, :append, :autocomplete_for_user]} map.permission :delete_issue_watchers, {:watchers => :destroy} - map.permission :import_issues, {:imports => [:new, :create, :settings, :mapping, :run, :show]} + map.permission :import_issues, {} # Issue categories map.permission :manage_categories, {:projects => :settings, :issue_categories => [:index, :show, :new, :create, :edit, :update, :destroy]}, :require => :member end |