CSS changes, enable links to system edit on network list
This commit is contained in:
@@ -253,15 +253,6 @@ class Address extends Model
|
||||
*/
|
||||
public function session(string $type): ?string
|
||||
{
|
||||
static $session = NULL;
|
||||
|
||||
if (is_null($session)) {
|
||||
$session = (new SystemZone)
|
||||
->where('zone_id',$this->zone_id)
|
||||
->where('system_id',$this->system_id)
|
||||
->single();
|
||||
}
|
||||
|
||||
return $session ? $session->{$type} : NULL;
|
||||
return ($x=$this->system->sessions->where('id',$this->zone_id)->first()) ? $x->pivot->{$type} : NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user