CSS changes, enable links to system edit on network list

This commit is contained in:
Deon George
2021-07-31 17:43:58 +10:00
parent d937547599
commit 49bc946024
4 changed files with 45 additions and 43 deletions

View File

@@ -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;
}
}