view .svn/pristine/17/176d1dc144c5bd598057e3a7c94346dee9aedc08.svn-base @ 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
children
line wrap: on
line source
class AddViewIssuesPermission < ActiveRecord::Migration
  def self.up
    Role.all.each do |r|
      r.add_permission!(:view_issues)
    end
  end

  def self.down
    Role.all.each do |r|
      r.remove_permission!(:view_issues)
    end
  end
end