##// END OF EJS Templates
Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521)....
Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9977 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r7636:67ac04e49afc
r9794:d7b669e50b1c
Show More
099_add_delete_wiki_pages_attachments_permission.rb
13 lines | 353 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
Toshi MARUYAMA
replace tabs to spaces at db/migrate/099_add_delete_wiki_pages_attachments_permission.rb (#9510)...
r7636 Role.find(:all).each do |r|
r.add_permission!(:delete_wiki_pages_attachments) if r.has_permission?(:edit_wiki_pages)
end
Jean-Philippe Lang
Adds 'Delete wiki pages attachments' permission....
r1936 end
def self.down
Toshi MARUYAMA
replace tabs to spaces at db/migrate/099_add_delete_wiki_pages_attachments_permission.rb (#9510)...
r7636 Role.find(:all).each do |r|
r.remove_permission!(:delete_wiki_pages_attachments)
end
Jean-Philippe Lang
Adds 'Delete wiki pages attachments' permission....
r1936 end
end