/** * @inheritdoc */ public function beforeAction($action) { // Block installer, when it's marked as installed if (Yii::$app->params['installed']) { throw new \yii\web\HttpException(500, 'HumHub is already installed!'); } Yii::$app->controller->enableCsrfValidation = false; return parent::beforeAction($action); }