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

25 lines
474 B

module BasicData
module Documents
module RoleSeeder
def member
super.tap do |member|
member[:permissions].concat %i(
view_documents
manage_documents
)
end
end
def reader
super.tap do |reader|
reader[:permissions].concat %i(
view_documents
)
end
end
end
BasicData::RoleSeeder.prepend BasicData::Documents::RoleSeeder
end
end