Compare commits
2 Commits
37adb14b9e
...
b02c1f07a2
Author | SHA1 | Date | |
---|---|---|---|
b02c1f07a2 | |||
c694280081 |
@ -69,8 +69,7 @@ class Domain extends Model
|
||||
|
||||
public function getCanAcceptAppAttribute(): bool
|
||||
{
|
||||
return ($x=our_address($this))
|
||||
&& $x->count()
|
||||
return our_address($this)->count()
|
||||
&& $this->active
|
||||
&& $this->accept_app
|
||||
&& Auth::id()
|
||||
@ -131,10 +130,9 @@ class Domain extends Model
|
||||
*/
|
||||
public function isManaged(): bool
|
||||
{
|
||||
return ($x=our_address())
|
||||
&& $x->pluck('zone.domain')
|
||||
->pluck('id')
|
||||
->contains($this->id);
|
||||
$x = our_address();
|
||||
|
||||
return $x && $x->pluck('zone.domain')->pluck('id')->contains($this->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user