New Permission: View Forum (#4866).

Patch by Felix Schäfer.

git-svn-id: http://svn.redmine.org/redmine/trunk@16637 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2017-06-07 20:20:22 +00:00
parent f902860955
commit b674e80128
4 changed files with 19 additions and 1 deletions

View File

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