/webtrees/app/ |
H A D | Family.php | 78 * @param int|null $access_level 82 public function husband(int|null $access_level = null): Individual|null argument 85 $access_level = Auth::PRIV_HIDE; variable in Fisharebest\\Webtrees\\Family 88 if ($this->husb instanceof Individual && $this->husb->canShowName($access_level)) { 98 * @param int|null $access_level 102 public function wife(int|null $access_level = null): Individual|null argument 105 $access_level = Auth::PRIV_HIDE; variable in Fisharebest\\Webtrees\\Family 108 if ($this->wife instanceof Individual && $this->wife->canShowName($access_level)) { 118 * @param int $access_level 122 protected function canShowByType(int $access_level): bool argument [all …]
|
H A D | GedcomRecord.php | 239 * @param int|null $access_level 243 public function canShow(int|null $access_level = null): bool argument 245 $access_level ??= Auth::accessLevel($this->tree); 249 if ($access_level === Auth::PRIV_HIDE) { 253 $cache_key = 'show-' . $this->xref . '-' . $this->tree->id() . '-' . $access_level; 255 …urn Registry::cache()->array()->remember($cache_key, fn () => $this->canShowRecord($access_level)); 261 * @param int|null $access_level 265 public function canShowName(int|null $access_level = null): bool argument 267 return $this->canShow($access_level); 294 public function privatizeGedcom(int $access_level): string argument [all …]
|
H A D | Individual.php | 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 [all …]
|
H A D | Fact.php | 310 * @param int|null $access_level 314 public function canShow(int|null $access_level = null): bool argument 316 $access_level ??= Auth::accessLevel($this->record->tree()); 323 return Auth::PRIV_NONE >= $access_level; 327 return Auth::PRIV_USER >= $access_level; 338 return $target->canShow($access_level); 346 return $individual_fact_privacy[$xref][$this->tag] >= $access_level; 349 return $fact_privacy[$this->tag] >= $access_level;
|
H A D | Source.php | 36 * @param int $access_level 40 protected function canShowByType(int $access_level): bool argument 46 if ($repo instanceof Repository && !$repo->canShow($access_level)) { 52 return parent::canShowByType($access_level);
|
H A D | Note.php | 60 * @param int $access_level 64 protected function canShowByType(int $access_level): bool argument 74 if ($linked_record instanceof GedcomRecord && !$linked_record->canShow($access_level)) { 80 return parent::canShowByType($access_level);
|
H A D | Media.php | 41 * @param int $access_level 45 protected function canShowByType(int $access_level): bool argument 55 if ($linked_record instanceof GedcomRecord && !$linked_record->canShow($access_level)) { 61 return parent::canShowByType($access_level);
|
/webtrees/app/Services/ |
H A D | GedcomExportService.php | 112 $access_level = self::ACCESS_LEVELS[$privacy]; 115 …$resource = $this->export($tree, $sort_by_xref, $encoding, $access_level, $line_endings, $records); 139 …$resource = $this->export($tree, $sort_by_xref, $encoding, $access_level, $line_endings, $records,… 165 … * @param int $access_level Apply privacy filtering 177 int $access_level = Auth::PRIV_HIDE, argument 198 } elseif ($access_level === Auth::PRIV_HIDE) { 231 $gedcom = $datum->privatizeGedcom($access_level);
|
/webtrees/app/Http/RequestHandlers/ |
H A D | AbstractModuleComponentAction.php | 104 $access_level = Validator::parsedBody($request)->integer($key); 106 if ($access_level !== $module->accessLevel($tree, $interface)) { 112 'access_level' => $access_level,
|
/webtrees/app/Module/ |
H A D | AbstractModule.php | 41 protected int $access_level = Auth::PRIV_PRIVATE; variable in Fisharebest\\Webtrees\\Module\\AbstractModule 224 return $row ? (int) $row->access_level : $this->access_level;
|
H A D | ClippingsCartModule.php | 108 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\ClippingsCartModule 247 $access_level = Auth::PRIV_NONE; 250 $access_level = Auth::PRIV_USER; 253 $access_level = Auth::PRIV_PRIVATE; 257 $access_level = Auth::PRIV_HIDE; 264 if ($object instanceof GedcomRecord && $object->canShow($access_level)) { 265 $gedcom = $object->privatizeGedcom($access_level);
|
H A D | FactSourcesReportModule.php | 33 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\FactSourcesReportModule
|
H A D | ChangeReportModule.php | 33 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\ChangeReportModule
|
H A D | MissingFactsReportModule.php | 33 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\MissingFactsReportModule
|
H A D | OccupationReportModule.php | 33 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\OccupationReportModule
|
H A D | IndividualFamiliesReportModule.php | 33 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\IndividualFamiliesReportModule
|
H A D | GoogleAnalyticsModule.php | 118 $parameters['access_level'] = $tree instanceof Tree ? Auth::accessLevel($tree, $user) : '-';
|
H A D | SourceListModule.php | 43 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\SourceListModule
|
H A D | RepositoryListModule.php | 44 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\RepositoryListModule
|
H A D | LocationListModule.php | 44 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\LocationListModule
|
H A D | SubmitterListModule.php | 44 protected int $access_level = Auth::PRIV_NONE; variable in Fisharebest\\Webtrees\\Module\\SubmitterListModule
|
H A D | PlaceHierarchyListModule.php | 62 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\PlaceHierarchyListModule
|
/webtrees/resources/views/modules/google-analytics/ |
H A D | snippet-v4.phtml | 19 'access_level': <?= json_encode($access_level, JSON_THROW_ON_ERROR) ?>,
|
/webtrees/app/Schema/ |
H A D | Migration42.php | 79 'access_level' => $datum->access_level,
|
/webtrees/app/Cli/Commands/ |
H A D | TreeExport.php | 88 access_level: Auth::PRIV_HIDE,
|