aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/workgroups_controller.rb
diff options
context:
space:
mode:
authorAlban Peignier2018-05-10 21:39:38 +0200
committerGitHub2018-05-10 21:39:38 +0200
commit093599f1c2e75ba2a4e3e9e8a6aa2cf665919886 (patch)
treed6488fa756d37198f0b50c93e7ddf8e23d3ee46e /app/controllers/workgroups_controller.rb
parentfdde7e05c29738356abe488a1b80ade098ef269d (diff)
parent6f624a7ca68600e93aae71f98182dfeb8c082674 (diff)
downloadchouette-core-093599f1c2e75ba2a4e3e9e8a6aa2cf665919886.tar.bz2
Merge pull request #558 from af83/6960-workgroup-edition
Workgroup edition. Fixes #6960
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..3acea248d
--- /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, compliance_control_set_ids: @workgroup.compliance_control_sets_by_workgroup.keys])
+ end
+end