##// 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:

r10702:738cf2e187f9
r10726:cf69c2da214a
Show More
016_add_repositories_permissions.rb
22 lines | 1.5 KiB | text/x-ruby | RubyLexer
/ db / migrate / 016_add_repositories_permissions.rb
Jean-Philippe Lang
svn browser merged in trunk...
r103 class AddRepositoriesPermissions < ActiveRecord::Migration
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 # model removed
class Permission < ActiveRecord::Base; end
Jean-Philippe Lang
svn browser merged in trunk...
r103 def self.up
Permission.create :controller => "repositories", :action => "show", :description => "button_view", :sort => 1450, :is_public => true
Permission.create :controller => "repositories", :action => "browse", :description => "label_browse", :sort => 1460, :is_public => true
Permission.create :controller => "repositories", :action => "entry", :description => "entry", :sort => 1462, :is_public => true
Permission.create :controller => "repositories", :action => "revisions", :description => "label_view_revisions", :sort => 1470, :is_public => true
Permission.create :controller => "repositories", :action => "revision", :description => "label_view_revisions", :sort => 1472, :is_public => true
Permission.create :controller => "repositories", :action => "diff", :description => "diff", :sort => 1480, :is_public => true
end
def self.down
Jean-Philippe Lang
Replaces find(:first) calls in migrations....
r10702 Permission.where("controller=? and action=?", 'repositories', 'show').first.destroy
Permission.where("controller=? and action=?", 'repositories', 'browse').first.destroy
Permission.where("controller=? and action=?", 'repositories', 'entry').first.destroy
Permission.where("controller=? and action=?", 'repositories', 'revisions').first.destroy
Permission.where("controller=? and action=?", 'repositories', 'revision').first.destroy
Permission.where("controller=? and action=?", 'repositories', 'diff').first.destroy
Jean-Philippe Lang
svn browser merged in trunk...
r103 end
end