diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-07 20:20:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-06-07 20:20:22 +0000 |
commit | b674e80128a2658aaf153c0a8413665b7ae07285 (patch) | |
tree | cfd10822dd7de61b7b41514efc9696b8820fd7fb /db | |
parent | f902860955813645d70f669c3961ebd35d4ed9a1 (diff) | |
download | redmine-b674e80128a2658aaf153c0a8413665b7ae07285.tar.gz redmine-b674e80128a2658aaf153c0a8413665b7ae07285.zip |
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
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb b/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb new file mode 100644 index 000000000..d010ba497 --- /dev/null +++ b/db/migrate/20170419144536_add_view_messages_to_all_existing_roles.rb @@ -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 |