Mercurial > hg > soundsoftware-site
comparison db/migrate/016_add_repositories_permissions.rb @ 1295:622f24f53b42 redmine-2.3
Update to Redmine SVN revision 11972 on 2.3-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:02:21 +0100 |
parents | 513646585e45 |
children |
comparison
equal
deleted
inserted
replaced
1294:3e4c3460b6ca | 1295:622f24f53b42 |
---|---|
10 Permission.create :controller => "repositories", :action => "revision", :description => "label_view_revisions", :sort => 1472, :is_public => true | 10 Permission.create :controller => "repositories", :action => "revision", :description => "label_view_revisions", :sort => 1472, :is_public => true |
11 Permission.create :controller => "repositories", :action => "diff", :description => "diff", :sort => 1480, :is_public => true | 11 Permission.create :controller => "repositories", :action => "diff", :description => "diff", :sort => 1480, :is_public => true |
12 end | 12 end |
13 | 13 |
14 def self.down | 14 def self.down |
15 Permission.find(:first, :conditions => ["controller=? and action=?", 'repositories', 'show']).destroy | 15 Permission.where("controller=? and action=?", 'repositories', 'show').first.destroy |
16 Permission.find(:first, :conditions => ["controller=? and action=?", 'repositories', 'browse']).destroy | 16 Permission.where("controller=? and action=?", 'repositories', 'browse').first.destroy |
17 Permission.find(:first, :conditions => ["controller=? and action=?", 'repositories', 'entry']).destroy | 17 Permission.where("controller=? and action=?", 'repositories', 'entry').first.destroy |
18 Permission.find(:first, :conditions => ["controller=? and action=?", 'repositories', 'revisions']).destroy | 18 Permission.where("controller=? and action=?", 'repositories', 'revisions').first.destroy |
19 Permission.find(:first, :conditions => ["controller=? and action=?", 'repositories', 'revision']).destroy | 19 Permission.where("controller=? and action=?", 'repositories', 'revision').first.destroy |
20 Permission.find(:first, :conditions => ["controller=? and action=?", 'repositories', 'diff']).destroy | 20 Permission.where("controller=? and action=?", 'repositories', 'diff').first.destroy |
21 end | 21 end |
22 end | 22 end |