Prevent access to privacy when GDPR is not enabled
This commit is contained in:
@ -156,6 +156,9 @@ class SettingsController extends Controller
|
|||||||
|
|
||||||
public function actionPrivacy()
|
public function actionPrivacy()
|
||||||
{
|
{
|
||||||
|
if (!$this->module->enableGDPRcompliance)
|
||||||
|
throw new NotFoundHttpException();
|
||||||
|
|
||||||
return $this->render('privacy', [
|
return $this->render('privacy', [
|
||||||
'module' => $this->module
|
'module' => $this->module
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user