From 0813464fe037db4d04c8a3a7ccfeb08c3e5d1af2 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 22 Mar 2020 08:06:36 +0100 Subject: [PATCH] Hard stop if feature flag is disabled. --- app/Http/Controllers/Admin/TelemetryController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/Admin/TelemetryController.php b/app/Http/Controllers/Admin/TelemetryController.php index 9aea8f4c5f..ec8dcddbad 100644 --- a/app/Http/Controllers/Admin/TelemetryController.php +++ b/app/Http/Controllers/Admin/TelemetryController.php @@ -38,6 +38,9 @@ class TelemetryController extends Controller public function __construct() { + if (false === config('firefly.feature_flags.telemetry')) { + die('Telemetry is disabled.'); + } parent::__construct(); $this->middleware(