Home
last modified time | relevance | path

Searched refs:access_level (Results 1 – 25 of 27) sorted by relevance

12

/webtrees/app/
H A DFamily.php78 * @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 DGedcomRecord.php239 * @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 DIndividual.php77 * @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 DFact.php310 * @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 DSource.php36 * @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 DNote.php60 * @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 DMedia.php41 * @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 DGedcomExportService.php112 $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 DAbstractModuleComponentAction.php104 $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 DAbstractModule.php41 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 DClippingsCartModule.php108 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 DFactSourcesReportModule.php33 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\FactSourcesReportModule
H A DChangeReportModule.php33 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\ChangeReportModule
H A DMissingFactsReportModule.php33 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\MissingFactsReportModule
H A DOccupationReportModule.php33 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\OccupationReportModule
H A DIndividualFamiliesReportModule.php33 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\IndividualFamiliesReportModule
H A DGoogleAnalyticsModule.php118 $parameters['access_level'] = $tree instanceof Tree ? Auth::accessLevel($tree, $user) : '-';
H A DSourceListModule.php43 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\SourceListModule
H A DRepositoryListModule.php44 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\RepositoryListModule
H A DLocationListModule.php44 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\LocationListModule
H A DSubmitterListModule.php44 protected int $access_level = Auth::PRIV_NONE; variable in Fisharebest\\Webtrees\\Module\\SubmitterListModule
H A DPlaceHierarchyListModule.php62 protected int $access_level = Auth::PRIV_USER; variable in Fisharebest\\Webtrees\\Module\\PlaceHierarchyListModule
/webtrees/resources/views/modules/google-analytics/
H A Dsnippet-v4.phtml19 'access_level': <?= json_encode($access_level, JSON_THROW_ON_ERROR) ?>,
/webtrees/app/Schema/
H A DMigration42.php79 'access_level' => $datum->access_level,
/webtrees/app/Cli/Commands/
H A DTreeExport.php88 access_level: Auth::PRIV_HIDE,

12