annotate .svn/pristine/f8/f890810254315df22a74b5e02dde109dedd9847a.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 class AddRepositoriesPermissions < ActiveRecord::Migration
Chris@1464 2 # model removed
Chris@1464 3 class Permission < ActiveRecord::Base; end
Chris@1464 4
Chris@1464 5 def self.up
Chris@1464 6 Permission.create :controller => "repositories", :action => "show", :description => "button_view", :sort => 1450, :is_public => true
Chris@1464 7 Permission.create :controller => "repositories", :action => "browse", :description => "label_browse", :sort => 1460, :is_public => true
Chris@1464 8 Permission.create :controller => "repositories", :action => "entry", :description => "entry", :sort => 1462, :is_public => true
Chris@1464 9 Permission.create :controller => "repositories", :action => "revisions", :description => "label_view_revisions", :sort => 1470, :is_public => true
Chris@1464 10 Permission.create :controller => "repositories", :action => "revision", :description => "label_view_revisions", :sort => 1472, :is_public => true
Chris@1464 11 Permission.create :controller => "repositories", :action => "diff", :description => "diff", :sort => 1480, :is_public => true
Chris@1464 12 end
Chris@1464 13
Chris@1464 14 def self.down
Chris@1464 15 Permission.where("controller=? and action=?", 'repositories', 'show').first.destroy
Chris@1464 16 Permission.where("controller=? and action=?", 'repositories', 'browse').first.destroy
Chris@1464 17 Permission.where("controller=? and action=?", 'repositories', 'entry').first.destroy
Chris@1464 18 Permission.where("controller=? and action=?", 'repositories', 'revisions').first.destroy
Chris@1464 19 Permission.where("controller=? and action=?", 'repositories', 'revision').first.destroy
Chris@1464 20 Permission.where("controller=? and action=?", 'repositories', 'diff').first.destroy
Chris@1464 21 end
Chris@1464 22 end