Add view_issues permission (#3187).
A migration adds this permission to all existing roles to preserve current behaviour. This permission controls access to issues, roadmap and changelog. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3039 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class AddViewIssuesPermission < ActiveRecord::Migration
|
||||
def self.up
|
||||
Role.find(:all).each do |r|
|
||||
r.add_permission!(:view_issues)
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
Role.find(:all).each do |r|
|
||||
r.remove_permission!(:view_issues)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user