Skip to content

Commit

Permalink
Need to check enum value
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Aug 12, 2024
1 parent ebb8af6 commit 989bdc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function init(): void
}

// If Craft edition is at least Team
if (Craft::$app->edition >= CmsEdition::Team) {
if (Craft::$app->edition->value >= CmsEdition::Team->value) {
$this->registerUserPermissions();
$this->sync->registerUserEvents();
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/ReportsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ private function getActivity(array $models, string $interaction = null, int $lim
$contactActivityModel->sourceUrl = UrlHelper::cpUrl('campaign/contacts/import/' . $model->source);
break;
case 'user':
$path = (Craft::$app->edition >= CmsEdition::Team && $model->source) ? 'users/' . $model->source : 'myaccount';
$path = (Craft::$app->edition->value >= CmsEdition::Team->value && $model->source) ? 'users/' . $model->source : 'myaccount';
$contactActivityModel->sourceUrl = UrlHelper::cpUrl($path);
break;
default:
Expand Down

0 comments on commit 989bdc0

Please sign in to comment.