Remove deprecated Domain::managed()
This commit is contained in:
@@ -123,20 +123,18 @@ class Domain extends Model
|
||||
});
|
||||
}
|
||||
|
||||
public function isManaged(): bool
|
||||
{
|
||||
return our_address()->pluck('zone.domain')->pluck('id')->contains($this->id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if this zone is managed by this host
|
||||
*
|
||||
* @return bool
|
||||
* @deprecated use self::isManaged();
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function managed(): bool
|
||||
public function isManaged(): bool
|
||||
{
|
||||
return our_address($this)->count() > 0;
|
||||
return ($x=our_address())
|
||||
&& $x->pluck('zone.domain')
|
||||
->pluck('id')
|
||||
->contains($this->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user