diff --git a/src/User/Controller/SettingsController.php b/src/User/Controller/SettingsController.php index 74b7cde..d4a3a3d 100644 --- a/src/User/Controller/SettingsController.php +++ b/src/User/Controller/SettingsController.php @@ -156,6 +156,9 @@ class SettingsController extends Controller public function actionPrivacy() { + if (!$this->module->enableGDPRcompliance) + throw new NotFoundHttpException(); + return $this->render('privacy', [ 'module' => $this->module ]);