Implemented echoarea/filearea security
This commit is contained in:
@@ -47,6 +47,8 @@ class Address extends Model
|
||||
});
|
||||
}
|
||||
|
||||
protected $visible = ['zone_id','region_id','host_id','node_id','point_id','security'];
|
||||
|
||||
/* SCOPES */
|
||||
|
||||
public function scopeActiveFTN($query)
|
||||
@@ -308,7 +310,12 @@ class Address extends Model
|
||||
*/
|
||||
public function getActiveAttribute(bool $value): bool
|
||||
{
|
||||
return $value && $this->zone->active && $this->zone->domain->active;
|
||||
return $value && $this->getActiveDomainAttribute();
|
||||
}
|
||||
|
||||
public function getActiveDomainAttribute(): bool
|
||||
{
|
||||
return $this->zone->active && $this->zone->domain->active;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user