Lines Matching refs:access_level
77 * @param int|null $access_level
81 public function canShowName(int|null $access_level = null): bool argument
83 $access_level ??= Auth::accessLevel($this->tree);
85 …) $this->tree->getPreference('SHOW_LIVING_NAMES') >= $access_level || $this->canShow($access_level…
91 * @param int $access_level
95 protected function canShowByType(int $access_level): bool argument
98 … if ((int) $this->tree->getPreference('SHOW_DEAD_PEOPLE') >= $access_level && $this->isDead()) {
135 return Auth::PRIV_USER >= $access_level;
662 * @param int|null $access_level
666 public function spouseFamilies(int|null $access_level = null): Collection argument
668 $access_level ??= Auth::accessLevel($this->tree);
671 $access_level = Auth::PRIV_HIDE;
675 foreach ($this->facts(['FAMS'], false, $access_level) as $fact) {
677 if ($family instanceof Family && $family->canShow($access_level)) {
728 * @param int|null $access_level
732 public function childFamilies(int|null $access_level = null): Collection argument
734 $access_level ??= Auth::accessLevel($this->tree);
737 $access_level = Auth::PRIV_HIDE;
742 foreach ($this->facts(['FAMC'], false, $access_level) as $fact) {
744 if ($family instanceof Family && $family->canShow($access_level)) {
1062 $access_level = $this->canShowName() ? Auth::PRIV_HIDE : Auth::accessLevel($this->tree);
1067 $this->facts(['NAME'], false, $access_level)