Merge remote-tracking branch 'origin/release/6.0' into dev

pull/6827/head
Oliver Günther 8 years ago
commit 9b8d4c363d
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 31
      app/seeders/role_seeder.rb

@ -0,0 +1,31 @@
module BasicData
module Backlogs
module RoleSeeder
def member
super.tap do |member|
member[:permissions].concat %i(
view_master_backlog
view_taskboards
create_stories
update_stories
create_tasks
update_tasks
create_impediments
update_impediments
)
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
Loading…
Cancel
Save