init.rb 656 B

12345678910111213141516171819
  1. require 'redmine'
  2. require 'requireattachment/patches/issues_controller'
  3. require 'requireattachment/patches/issue'
  4. require 'requireattachment/hooks/view_issues_edit_notes_bottom'
  5. Redmine::Plugin.register :redmine_requireattachment do
  6. name 'Require attachment to close'
  7. author 'Dmitry Yu Okunev'
  8. description "Plugin adds role-based permission to control who can close issues without any attachment. Yes, it's very specific use case."
  9. version '0.1'
  10. settings :default => {}, :partial => 'requireattachment/settings'
  11. project_module :requireattachment do
  12. permission :close_without_attachment, :projects => :close_without_attachment
  13. end
  14. end