Skip to content
Snippets Groups Projects
  • Jean-Philippe Lang's avatar
    Merged 0.6 branch into trunk. · 603e11d7
    Jean-Philippe Lang authored
    Permissions management was rewritten. Some permissions can now be specifically defined for non member and anonymous users.
    This migration:
    * is irreversible (please, don't forget to *backup* your database before upgrading)
    * resets role's permissions (go to "Admin -> Roles & Permissions" to set them after upgrading)
    
    git-svn-id: http://redmine.rubyforge.org/svn/trunk@674 e93f8b46-1217-0410-a6f0-8f06a7374b81
    603e11d7
002_issue_move.rb 421 B
class IssueMove < ActiveRecord::Migration
  # model removed
  class Permission < ActiveRecord::Base; end

  def self.up
    Permission.create :controller => "projects", :action => "move_issues", :description => "button_move", :sort => 1061, :mail_option => 0, :mail_enabled => 0
  end

  def self.down
    Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'move_issues']).destroy
  end
end