aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/workgroups_controller.rb
diff options
context:
space:
mode:
authorZog2018-05-07 16:57:22 +0200
committerZog2018-05-07 16:57:22 +0200
commit430550b965035be3d78abad790e6c44fdc69087f (patch)
treeb5762d5055910c6ff14881c1f9101c0bfdc65ea5 /app/controllers/workgroups_controller.rb
parentfb4d1c66cb4c0cd83e183a13ca5f9ea44803631b (diff)
downloadchouette-core-430550b965035be3d78abad790e6c44fdc69087f.tar.bz2
Refs #6960; Add a view to set the controls associated to each workbench
Diffstat (limited to 'app/controllers/workgroups_controller.rb')
-rw-r--r--app/controllers/workgroups_controller.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/controllers/workgroups_controller.rb b/app/controllers/workgroups_controller.rb
new file mode 100644
index 000000000..5d422380c
--- /dev/null
+++ b/app/controllers/workgroups_controller.rb
@@ -0,0 +1,13 @@
+class WorkgroupsController < ChouetteController
+ defaults resource_class: Workgroup
+
+ include PolicyChecker
+
+ def show
+ redirect_to "/"
+ end
+
+ def workgroup_params
+ params[:workgroup].permit(workbenches_attributes: [:id, owner_compliance_control_set_ids: @workgroup.available_compliance_control_sets.keys])
+ end
+end