Optimise queries for rendering the about page
This commit is contained in:
@@ -139,10 +139,16 @@ class Domain extends Model
|
||||
->get();
|
||||
}
|
||||
|
||||
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();
|
||||
*/
|
||||
public function managed(): bool
|
||||
{
|
||||
|
Reference in New Issue
Block a user