Home
last modified time | relevance | path

Searched refs:Auth (Results 1 – 25 of 343) sorted by relevance

12345678910>>...14

/webtrees/tests/feature/
H A DPrivacy.php75 Auth::login($admin);
76 self::assertTrue(Auth::isAdmin(), 'admin isAdmin()');
77 self::assertTrue(Auth::isManager($tree), 'admin isManager()');
78 self::assertTrue(Auth::isModerator($tree), 'admin isModerator()');
79 self::assertTrue(Auth::isEditor($tree), 'admin isEditor()');
80 self::assertTrue(Auth::isMember($tree), 'admin isMember()');
82 Auth::login($manager);
83 self::assertFalse(Auth::isAdmin(), 'manager NOT isAdmin()');
84 self::assertTrue(Auth::isManager($tree, $manager), 'manager isManager()');
85 self::assertTrue(Auth::isModerator($tree, $manager), 'manager isModerator()');
[all …]
/webtrees/app/
H A DTree.php41 'none' => Auth::PRIV_PRIVATE,
42 'privacy' => Auth::PRIV_USER,
43 'confidential' => Auth::PRIV_NONE,
44 'hidden' => Auth::PRIV_HIDE,
333 return Auth::isModerator($this, $user);
369 …$gedcom .= "\n1 CHAN\n2 DATE " . $today . "\n3 TIME " . $now . "\n2 _WT_USER " . Auth::user()->use…
378 'user_id' => Auth::id(),
382 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
414 …$gedcom .= "\n1 CHAN\n2 DATE " . $today . "\n3 TIME " . $now . "\n2 _WT_USER " . Auth::user()->use…
423 'user_id' => Auth::id(),
[all …]
H A DIndividual.php83 $access_level ??= Auth::accessLevel($this->tree);
127 …$user_path_length = (int) $this->tree->getUserPreference(Auth::user(), UserInterface::PREF_TREE_PA…
128 …$gedcomid = $this->tree->getUserPreference(Auth::user(), UserInterface::PREF_TREE_ACCOUNT_…
135 return Auth::PRIV_USER >= $access_level;
150 …al = Registry::individualFactory()->make($target->tree->getUserPreference(Auth::user(), UserInterf…
157 … foreach ($user_individual->facts(['FAMC', 'FAMS'], false, Auth::PRIV_HIDE) as $fact) {
185 … foreach ($family->facts(['HUSB', 'WIFE', 'CHIL'], false, Auth::PRIV_HIDE) as $fact) {
199 … foreach ($individual->facts(['FAMC', 'FAMS'], false, Auth::PRIV_HIDE) as $fact) {
248 foreach ($this->childFamilies(Auth::PRIV_HIDE) as $family) {
249 foreach ($family->spouses(Auth::PRIV_HIDE) as $parent) {
[all …]
H A DGedcomRecord.php245 $access_level ??= Auth::accessLevel($this->tree);
249 if ($access_level === Auth::PRIV_HIDE) {
281 if (Auth::isManager($this->tree)) {
288 return Auth::isEditor($this->tree) && !$locked;
296 if ($access_level === Auth::PRIV_HIDE) {
622 $access_level ??= Auth::accessLevel($this->tree);
689 if (!Auth::canUploadMedia($this->tree, Auth::user())) {
814 foreach ($this->facts([], false, Auth::PRIV_HIDE, true) as $fact) {
844 'user_id' => Auth::id(),
849 if (Auth::user()->getPreference(UserInterface::PREF_AUTO_ACCEPT_EDITS) === '1') {
[all …]
H A DRelationship.php129 ->facts(['FAMC'], false, Auth::PRIV_HIDE)
141 ->facts(['FAMC'], false, Auth::PRIV_HIDE)
281 … $fact = $family->facts(['ENGA', 'MARR', 'DIV', 'ANUL'], true, Auth::PRIV_HIDE)->last();
347 ->facts(['FAMC'], false, Auth::PRIV_HIDE)
359 ->facts(['FAMC'], false, Auth::PRIV_HIDE)
403 …$date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
404 …$date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
502 …$date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
503 …$date2 = $nodes[2]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
530 …$date1 = $nodes[0]->facts(['BIRT'], false, Auth::PRIV_HIDE)->map(fn (Fact $fact): Date => $fact->d…
[all …]
/webtrees/app/Module/
H A DClippingsCartModule.php22 use Fisharebest\Webtrees\Auth; alias
108 protected int $access_level = Auth::PRIV_USER;
221 if (Auth::isAdmin()) {
223 } elseif (Auth::isManager($tree)) {
225 } elseif (Auth::isMember($tree)) {
247 $access_level = Auth::PRIV_NONE;
250 $access_level = Auth::PRIV_USER;
253 $access_level = Auth::PRIV_PRIVATE;
257 $access_level = Auth::PRIV_HIDE;
372 $family = Auth::checkFamilyAccess($family);
[all …]
H A DModuleThemeTrait.php22 use Fisharebest\Webtrees\Auth; alias
152 …ervice->findByComponent(ModuleChartInterface::class, $individual->tree(), Auth::user()) as $chart)…
203 if (Auth::check() && $route->name === UserPage::class) {
207 if (Auth::isManager($tree) && $route->name === TreePage::class) {
223 if (Auth::isAdmin()) {
227 if (Auth::isManager($tree)) {
265 if (Auth::check()) {
294 if (Auth::check()) {
329 …$record = Registry::individualFactory()->make($tree->getUserPreference(Auth::user(), UserInterface…
359 if (Auth::check()) {
[all …]
H A DUserJournalModule.php22 use Fisharebest\Webtrees\Auth; alias
75 ->where('user_id', '=', Auth::id())
156 if (!Auth::check()) {
165 ->where('user_id', '=', Auth::id())
196 if (!Auth::check()) {
210 ->where('user_id', '=', Auth::id())
220 'user_id' => Auth::id(),
241 ->where('user_id', '=', Auth::id())
H A DUserMessagesModule.php22 use Fisharebest\Webtrees\Auth; alias
88 ->where('user_id', '=', Auth::id())
114 ->where('user_id', '=', Auth::id())
125 $can_see_tree = $public_tree || Auth::accessLevel($tree, $user) <= Auth::PRIV_USER;
128 $user->id() !== Auth::id() &&
H A DHourglassChartModule.php23 use Fisharebest\Webtrees\Auth; alias
163 Auth::checkComponentAccess($this, ModuleChartInterface::class, $tree, $user);
166 $individual = Auth::checkIndividualAccess($individual, false, true);
209 $family = Auth::checkFamilyAccess($family);
230 $individual = Auth::checkIndividualAccess($individual, false, true);
H A DWelcomeBlockModule.php22 use Fisharebest\Webtrees\Auth; alias
76 $individual = $tree->significantIndividual(Auth::user());
81 ->findByComponent(ModuleChartInterface::class, $tree, Auth::user())
99 if (Site::getPreference('USE_REGISTRATION_MODULE') === '1' && !Auth::check()) {
/webtrees/app/Statistics/Repository/
H A DUserRepository.php22 use Fisharebest\Webtrees\Auth; alias
71 … if (Auth::isAdmin() || $user->getPreference(UserInterface::PREF_IS_VISIBLE_ONLINE) === '1') {
104 if (Auth::check()) {
120 …nterface::PREF_CONTACT_METHOD) !== MessageService::CONTACT_METHOD_NONE && Auth::id() !== $user->id…
162 … return Auth::isAdmin() || $user->getPreference(UserInterface::PREF_IS_VISIBLE_ONLINE) === '1';
210 return (string) Auth::id();
220 if (Auth::check()) {
221 return e(Auth::user()->userName());
233 return Auth::check() ? '<bdi>' . e(Auth::user()->realName()) . '</bdi>' : '';
/webtrees/app/Http/RequestHandlers/
H A DLoginAction.php23 use Fisharebest\Webtrees\Auth; alias
77 if (Auth::isAdmin() && $this->upgrade_service->isUpgradeAvailable()) {
133 Auth::login($user);
134 … Log::addAuthenticationLog('Login: ' . Auth::user()->userName() . '/' . Auth::user()->realName());
135 Auth::user()->setPreference(UserInterface::PREF_TIMESTAMP_ACTIVE, (string) time());
137 Session::put('language', Auth::user()->getPreference(UserInterface::PREF_LANGUAGE));
138 Session::put('theme', Auth::user()->getPreference(UserInterface::PREF_THEME));
139 I18N::init(Auth::user()->getPreference(UserInterface::PREF_LANGUAGE));
H A DIndividualPage.php24 use Fisharebest\Webtrees\Auth; alias
93 $individual = Auth::checkIndividualAccess($individual);
113 if (Auth::isAdmin()) {
126 'can_upload_media' => Auth::canUploadMedia($tree, Auth::user()),
243 ->findByComponent(ModuleSidebarInterface::class, $individual->tree(), Auth::user())
258 ->findByComponent(ModuleTabInterface::class, $individual->tree(), Auth::user())
H A DLogout.php22 use Fisharebest\Webtrees\Auth; alias
50 … Log::addAuthenticationLog('Logout: ' . Auth::user()->userName() . '/' . Auth::user()->realName());
51 Auth::logout();
H A DTreePreferencesPage.php22 use Fisharebest\Webtrees\Auth; alias
123 Auth::PRIV_USER => I18N::translate('Show to members'),
124 Auth::PRIV_NONE => I18N::translate('Show to managers'),
125 Auth::PRIV_HIDE => I18N::translate('Hide from everyone'),
136 …$members = $this->user_service->all()->filter(static fn (UserInterface $user): bool => Auth::isMem…
H A DAddNewFact.php22 use Fisharebest\Webtrees\Auth; alias
64 if ($subtag === 'OBJE' && !Auth::canUploadMedia($tree, Auth::user())) {
71 $record = Auth::checkRecordAccess($record, true);
/webtrees/tests/app/
H A DTreeTest.php104 Auth::login($user);
117 Auth::login($user);
137 Auth::login($user);
150 Auth::login($user);
170 Auth::login($user);
183 Auth::login($user);
203 Auth::login($user);
216 Auth::login($user);
234 Auth::login($user);
283 Auth::login($user);
/webtrees/resources/views/
H A Drecord-page-pending.phtml5 use Fisharebest\Webtrees\Auth; alias
18 <?php if (Auth::isModerator($record->tree())) : ?>
20 <?php elseif (Auth::isEditor($record->tree())) : ?>
24 <?php if (Auth::isModerator($record->tree())) : ?>
26 <?php elseif (Auth::isEditor($record->tree())) : ?>
H A Dmedia-page-pending.phtml5 use Fisharebest\Webtrees\Auth; alias
17 <?php if (Auth::isModerator($record->tree())) : ?>
19 <?php elseif (Auth::isEditor($record->tree())) : ?>
23 <?php if (Auth::isModerator($record->tree())) : ?>
25 <?php elseif (Auth::isEditor($record->tree())) : ?>
H A Dindividual-page-pending.phtml5 use Fisharebest\Webtrees\Auth; alias
17 <?php if (Auth::isModerator($record->tree())) : ?>
22 <?php elseif (Auth::isEditor($record->tree())) : ?>
26 <?php if (Auth::isModerator($record->tree())) : ?>
31 <?php elseif (Auth::isEditor($record->tree())) : ?>
H A Dnote-page-pending.phtml5 use Fisharebest\Webtrees\Auth; alias
18 <?php if (Auth::isModerator($record->tree())) : ?>
20 <?php elseif (Auth::isEditor($record->tree())) : ?>
24 <?php if (Auth::isModerator($record->tree())) : ?>
26 <?php elseif (Auth::isEditor($record->tree())) : ?>
H A Dfamily-page-pending.phtml5 use Fisharebest\Webtrees\Auth; alias
18 <?php if (Auth::isModerator($record->tree())) : ?>
20 <?php elseif (Auth::isEditor($record->tree())) : ?>
24 <?php if (Auth::isModerator($record->tree())) : ?>
26 <?php elseif (Auth::isEditor($record->tree())) : ?>
/webtrees/app/Services/
H A DGedcomExportService.php22 use Fisharebest\Webtrees\Auth; alias
76 'gedadmin' => Auth::PRIV_NONE,
77 'user' => Auth::PRIV_USER,
78 'visitor' => Auth::PRIV_PRIVATE,
79 'none' => Auth::PRIV_HIDE,
177 int $access_level = Auth::PRIV_HIDE,
198 } elseif ($access_level === Auth::PRIV_HIDE) {
/webtrees/resources/views/admin/
H A Dgedcom-export-options.phtml5 use Fisharebest\Webtrees\Auth; alias
103 <?php if (Auth::isAdmin()) : ?>
105 <?php elseif (Auth::isManager($tree)) : ?>
107 <?php elseif (Auth::isMember($tree)) : ?>

12345678910>>...14