From f31a79c5bc3678949b7334486daa196a17a5db92 Mon Sep 17 00:00:00 2001 From: Alban Peignier Date: Tue, 19 Dec 2017 19:42:52 +0100 Subject: Create Organisation#features and FeatureChecker controller concerns. Refs #5339 --- app/controllers/workbenches_controller.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/controllers/workbenches_controller.rb') diff --git a/app/controllers/workbenches_controller.rb b/app/controllers/workbenches_controller.rb index b2dac9e67..4da95df7a 100644 --- a/app/controllers/workbenches_controller.rb +++ b/app/controllers/workbenches_controller.rb @@ -5,6 +5,9 @@ class WorkbenchesController < ChouetteController defaults resource_class: Workbench respond_to :html, only: [:show, :index] + include FeatureChecker + requires_feature :test, only: :index + def index redirect_to dashboard_path end -- cgit v1.2.3