Remove deprecated Domain::managed()
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 37s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m49s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
2024-05-29 19:13:28 +10:00
parent 31770241ec
commit 2590c2de71
4 changed files with 15 additions and 12 deletions

View File

@@ -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);
}
/**