<commit_before>require 'redmine_approve_list'

Redmine::Plugin.register :redmine_approve_list do
  name 'Redmine approve list'
  author 'Tacid'
  description 'This is a plugin that adds approve list to issues'
  version '0.1.0'
  url 'https://github.com/tacid/redmine_approve_list'
  author_url 'https://github.com/tacid'

  requires_redmine :version_or_higher => '3.0.0'

  Redmine::AccessControl.map do |map|
    map.permission :view_issue_approvers, {}, :read => true
    map.permission :add_issue_approvers, {:approvers => [:new, :create, :append, :autocomplete_for_user]}
    map.permission :delete_issue_approvers, {:approvers => :destroy}
    map.permission :import_issues, {:imports => [:new, :create, :settings, :mapping, :run, :show]}
  end

  settings default: {
    approve_tracker_ids: Tracker.all.map{|t| t.id.to_s},
  }, partial: 'settings/redmine_approve_list_settings'
end<commit_msg>fix permissions mappong to project_module issue_tracking<commit_after>require 'redmine_approve_list'

Redmine::Plugin.register :redmine_approve_list do
  name 'Redmine approve list'
  author 'Tacid'
  description 'This is a plugin that adds approve list to issues'
  version '0.1.0'
  url 'https://github.com/tacid/redmine_approve_list'
  author_url 'https://github.com/tacid'

  requires_redmine :version_or_higher => '3.0.0'

  Redmine::AccessControl.map do |map|
    map.project_module :issue_tracking do |map|
      map.permission :view_issue_approvers, {}, :read => true
      map.permission :add_issue_approvers, {:approvers => [:new, :create, :append, :autocomplete_for_user]}
      map.permission :delete_issue_approvers, {:approvers => :destroy}
      map.permission :import_issues, {:imports => [:new, :create, :settings, :mapping, :run, :show]}
    end
  end

  settings default: {
    approve_tracker_ids: Tracker.all.map{|t| t.id.to_s},
  }, partial: 'settings/redmine_approve_list_settings'
end
{'fraction_non_alphanumeric': 0.12781561026715557, 'fraction_numerical': 0.006286013619696176, 'mean_word_length': 5.044303797468355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '427256', 'n_tokens_mistral': 676, 'n_tokens_neox': 643, 'n_words': 143}