Prevent access to privacy when GDPR is not enabled

This commit is contained in:
E.Alamo
2018-05-27 18:27:00 +02:00
parent 9275b16d1d
commit 572eb2c2cd

View File

@ -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
]);