|
@@ -73,12 +73,14 @@ class SiteUser
|
|
->get()
|
|
->get()
|
|
->pluck('id')
|
|
->pluck('id')
|
|
->toArray();
|
|
->toArray();
|
|
-
|
|
|
|
foreach ($users as $user) {
|
|
foreach ($users as $user) {
|
|
if (in_array($user->distribution_channel_id, $inner_channels)) {
|
|
if (in_array($user->distribution_channel_id, $inner_channels)) {
|
|
$this->users[] = $user;
|
|
$this->users[] = $user;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (!$this->users) {
|
|
|
|
+ $this->users = $users;
|
|
|
|
+ }
|
|
if (count($this->users) == 1) {
|
|
if (count($this->users) == 1) {
|
|
$this->setUserLink($this->users[0]->id);
|
|
$this->setUserLink($this->users[0]->id);
|
|
$this->channel_id = $this->users[0]->distribution_channel_id;
|
|
$this->channel_id = $this->users[0]->distribution_channel_id;
|