app/Individual.php
public function canShowName(int $access_level = null): bool
    {
        if ($access_level === null) {
            $access_level = Auth::accessLevel($this->tree);
        }

        return $this->tree->getPreference('SHOW_LIVING_NAMES') >= $access_level || $this->canShow($access_level);
    }
public function canShowName(int $access_level = null): bool
    {
        if ($access_level === null) {
            $access_level = Auth::accessLevel($this->tree);
        }

        return $this->tree->getPreference('SHOW_LIVING_NAMES') >= $access_level || $this->canShow($access_level);
    }
public function canShowName ( int $ access_level = null ) : bool { if ( $ access_level === null ) { $ access_level = Auth :: accessLevel ( $ this -> tree ) ; } return $ this -> tree -> getPreference ( 'SHOW_LIVING_NAMES' ) >= $ access_level || $ this -> canShow ( $ access_level ) ; }
Can the name of this record be shown?

@param int|null $access_level

@return bool
Can the name of this record be shown?