New permission: view news (#7068).

Patch by Felix Schäfer.

git-svn-id: http://svn.redmine.org/redmine/trunk@16639 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2017-06-07 20:25:25 +00:00
parent d3f93a2907
commit 9b0fcdaf2b
8 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
class AddViewNewsToAllExistingRoles < ActiveRecord::Migration
def up
Role.all.each { |role| role.add_permission! :view_news }
end
def down
# nothing to revert
end
end