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