##// END OF EJS Templates
Disable priority (#5925) and progress in context menu for parent issues....
Disable priority (#5925) and progress in context menu for parent issues. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3869 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1936:ccbe48d77911
r3755:379c0a1dd43c
Show More
099_add_delete_wiki_pages_attachments_permission.rb
13 lines | 339 B | text/x-ruby | RubyLexer
/ db / migrate / 099_add_delete_wiki_pages_attachments_permission.rb
Jean-Philippe Lang
Adds 'Delete wiki pages attachments' permission....
r1936 class AddDeleteWikiPagesAttachmentsPermission < ActiveRecord::Migration
def self.up
Role.find(:all).each do |r|
r.add_permission!(:delete_wiki_pages_attachments) if r.has_permission?(:edit_wiki_pages)
end
end
def self.down
Role.find(:all).each do |r|
r.remove_permission!(:delete_wiki_pages_attachments)
end
end
end