mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 05:28:18 +01:00
Merge pull request #4022 from langemeijer/no-disable-compontents-in-global
Ignore disabled components when determining if a subscription is 'global'
This commit is contained in:
commit
9a83bb3171
@ -36,7 +36,7 @@ class UpdateSubscriberSubscriptionCommandHandler
|
|||||||
$subscriber = $command->subscriber;
|
$subscriber = $command->subscriber;
|
||||||
$subscriptions = $command->subscriptions ?: [];
|
$subscriptions = $command->subscriptions ?: [];
|
||||||
|
|
||||||
$components = Component::all();
|
$components = Component::enabled()->get();
|
||||||
|
|
||||||
$updateSubscriptions = $components->filter(function ($item) use ($subscriptions) {
|
$updateSubscriptions = $components->filter(function ($item) use ($subscriptions) {
|
||||||
return in_array($item->id, $subscriptions);
|
return in_array($item->id, $subscriptions);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user