##// END OF EJS Templates
Don't force english language for default admin account (#12485)....
Don't force english language for default admin account (#12485). Contributed by Go MAEDA. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10953 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r10691:abd921736b6d
r10726:cf69c2da214a
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
Jean-Philippe Lang
Replaces find(:all) calls....
r10691 Role.all.each do |r|
Toshi MARUYAMA
replace tabs to spaces at db/migrate/099_add_delete_wiki_pages_attachments_permission.rb (#9510)...
r7636 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
Jean-Philippe Lang
Replaces find(:all) calls....
r10691 Role.all.each do |r|
Toshi MARUYAMA
replace tabs to spaces at db/migrate/099_add_delete_wiki_pages_attachments_permission.rb (#9510)...
r7636 r.remove_permission!(:delete_wiki_pages_attachments)
end
Jean-Philippe Lang
Adds 'Delete wiki pages attachments' permission....
r1936 end
end