OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/modules/boards/app/seeders/role_seeder.rb

24 lines
474 B

module BasicData
module Boards
module RoleSeeder
def member
super.tap do |member|
member[:permissions].concat %i(
show_board_views
manage_board_views
)
end
end
def reader
super.tap do |reader|
reader[:permissions].concat %i(
show_board_views
)
end
end
end
BasicData::RoleSeeder.prepend BasicData::Boards::RoleSeeder
end
end