Further enhancement with #9063a2a - to ensure our message addressing and content picks the right address
This commit is contained in:
@@ -146,16 +146,6 @@ class Domain extends Model
|
||||
*/
|
||||
public function managed(): bool
|
||||
{
|
||||
static $so = NULL;
|
||||
|
||||
if (is_null($so))
|
||||
$so = Setup::findOrFail(config('app.id'));
|
||||
|
||||
return $so
|
||||
->system
|
||||
->addresses
|
||||
->where('zone.domain.active',TRUE)
|
||||
->pluck('zone.domain_id')
|
||||
->contains($this->id);
|
||||
return our_address($this)->count() > 0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user