Added FTN list, System View
This commit is contained in:
@@ -129,4 +129,24 @@ class Domain extends Model
|
||||
->orderBy('echoareas.name')
|
||||
->get();
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if this zone is managed by this host
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user