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/backlogs/app/seeders/role_seeder.rb

25 lines
509 B

module BasicData
module Backlogs
module RoleSeeder
def member
super.tap do |member|
member[:permissions].concat %i(
view_master_backlog
view_taskboards
)
end
end
def reader
super.tap do |reader|
reader[:permissions].concat %i(
view_master_backlog
view_taskboards
)
end
end
end
BasicData::RoleSeeder.prepend BasicData::Backlogs::RoleSeeder
end
end