src/Webtrees/GedcomRecord.php
public function canDisplayIsSourced($access_level = null){
		if(!$this->gedcomrecord->canShow($access_level)) return false;
		if($access_level === null )
		    $access_level = \Fisharebest\Webtrees\Auth::accessLevel($this->gedcomrecord->getTree());

		$global_facts = Globals::getGlobalFacts();
		if (isset($global_facts['SOUR'])) {
			return $global_facts['SOUR'] >= $access_level;
		}

		return true;
	}
public function canDisplayIsSourced($access_level = null){
		if(!$this->gedcomrecord->canShow($access_level)) return false;
		if($access_level === null )
		    $access_level = \Fisharebest\Webtrees\Auth::accessLevel($this->gedcomrecord->getTree());

		$global_facts = Globals::getGlobalFacts();
		if (isset($global_facts['SOUR'])) {
			return $global_facts['SOUR'] >= $access_level;
		}

		return true;
	}
public function canDisplayIsSourced ( $ access_level = null ) { if ( ! $ this -> gedcomrecord -> canShow ( $ access_level ) ) return false ; if ( $ access_level === null ) $ access_level = \ Fisharebest \ Webtrees \ Auth :: accessLevel ( $ this -> gedcomrecord -> getTree ( ) ) ; $ global_facts = Globals :: getGlobalFacts ( ) ; if ( isset ( $ global_facts [ 'SOUR' ] ) ) { return $ global_facts [ 'SOUR' ] >= $ access_level ; } return true ; }
Check if the IsSourced information can be displayed

@param int $access_level
@return boolean
Check if the IsSourced information can be displayed