Fix for when no zones/echoareas have been created yet in a domain
This commit is contained in:
@@ -69,7 +69,8 @@ class Domain extends Model
|
||||
|
||||
public function getCanAcceptAppAttribute(): bool
|
||||
{
|
||||
return our_address($this)->count()
|
||||
return ($x=our_address($this))
|
||||
&& $x->count()
|
||||
&& $this->active
|
||||
&& $this->accept_app
|
||||
&& Auth::id()
|
||||
|
Reference in New Issue
Block a user