mirror of
https://github.com/redmine/redmine.git
synced 2025-12-15 21:10:27 +01:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user