Skip to content

Commit

Permalink
Merge pull request #4022 from langemeijer/no-disable-compontents-in-g…
Browse files Browse the repository at this point in the history
…lobal

Ignore disabled components when determining if a subscription is 'global'
  • Loading branch information
jbrooksuk committed Aug 1, 2020
2 parents 583bc58 + 0b38e41 commit 9a83bb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle(UpdateSubscriberSubscriptionCommand $command)
$subscriber = $command->subscriber;
$subscriptions = $command->subscriptions ?: [];

$components = Component::all();
$components = Component::enabled()->get();

$updateSubscriptions = $components->filter(function ($item) use ($subscriptions) {
return in_array($item->id, $subscriptions);
Expand Down

0 comments on commit 9a83bb3

Please sign in to comment.