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