Fixed cloud licence display

This commit is contained in:
Lucas Bartholemy 2020-01-10 16:26:15 +01:00
parent c1f3784b39
commit 0764662e0d

View File

@ -26,7 +26,7 @@ class AboutVersion extends Widget
$licence = $module->getLicence();
if ($licence->type === Licence::LICENCE_TYPE_PRO) {
if (isset(Yii::$app->params['hosting'])) {
if (isset(Yii::$app->params['hosting']) && empty($licence->licencedTo)) {
return $this->render('about_version_pro_cloud', []);
} else {
return $this->render('about_version_pro', ['licence' => $licence]);