Home
last modified time | relevance | path

Searched refs:isAdmin (Results 1 – 25 of 32) sorted by relevance

12

/webtrees/tests/feature/
H A DPrivacy.php76 self::assertTrue(Auth::isAdmin(), 'admin isAdmin()');
83 self::assertFalse(Auth::isAdmin(), 'manager NOT isAdmin()');
90 self::assertFalse(Auth::isAdmin(), 'moderator NOT isAdmin()');
97 self::assertFalse(Auth::isAdmin(), 'editor NOT isAdmin()');
104 self::assertFalse(Auth::isAdmin(), 'member NOT isAdmin()');
111 self::assertFalse(Auth::isAdmin(), 'visitor NOT isAdmin()');
/webtrees/app/Statistics/Repository/
H A DUserRepository.php71 … if (Auth::isAdmin() || $user->getPreference(UserInterface::PREF_IS_VISIBLE_ONLINE) === '1') {
162 … return Auth::isAdmin() || $user->getPreference(UserInterface::PREF_IS_VISIBLE_ONLINE) === '1';
/webtrees/resources/views/admin/
H A Dtrees.phtml115 <?php if (count($all_trees) > 1 && Auth::isAdmin()) : ?>
125 <?php if (count($all_trees) > 1 && Auth::isAdmin()) : ?>
H A Dtrees-preferences.phtml67 <?php if (Auth::isAdmin()) : ?>
234 <?php if (Auth::isAdmin()) : ?>
H A Dusers-table-options.phtml43 <?php if (!Auth::isAdmin($user)) : ?>
H A Dgedcom-export-options.phtml103 <?php if (Auth::isAdmin()) : ?>
/webtrees/app/
H A DAuth.php58 public static function isAdmin(UserInterface|null $user = null): bool function in Fisharebest\\Webtrees\\Auth
77 …return self::isAdmin($user) || $tree->getUserPreference($user, UserInterface::PREF_TREE_ROLE) === …
/webtrees/resources/views/
H A Dindividual-page-title.phtml24 <?php if (Auth::isAdmin()) : ?>
H A Dfamily-page-menu.phtml86 … <?php if (Auth::isAdmin() || $record->tree()->getPreference('SHOW_GEDCOM_RECORD') === '1') : ?>
H A Dindividual-page-menu.phtml126 … <?php if (Auth::isAdmin() || $record->tree()->getPreference('SHOW_GEDCOM_RECORD') === '1') : ?>
/webtrees/app/Http/RequestHandlers/
H A DDeleteUser.php63 if (Auth::isAdmin($user)) {
H A DModuleAction.php77 if (str_contains($action, 'Admin') && !Auth::isAdmin($user)) {
H A DHomePage.php81 if (Auth::isAdmin($user)) {
H A DEditRecordPage.php63 $can_edit_raw = Auth::isAdmin() || $tree->getPreference('SHOW_GEDCOM_RECORD') === '1';
H A DEditFactPage.php73 $can_edit_raw = Auth::isAdmin() || $tree->getPreference('SHOW_GEDCOM_RECORD') === '1';
H A DHelpText.php270 'is_admin' => Auth::isAdmin(),
H A DLoginAction.php77 if (Auth::isAdmin() && $this->upgrade_service->isUpgradeAvailable()) {
/webtrees/app/Http/Middleware/
H A DAuthAdministrator.php52 if (Auth::isAdmin($user)) {
/webtrees/app/Services/
H A DLeafletJsService.php63 if (Auth::isAdmin()) {
/webtrees/app/Module/
H A DHereMaps.php76 if (Auth::isAdmin()) {
H A DBingMaps.php117 if (Auth::isAdmin()) {
H A DGoogleMaps.php117 if (Auth::isAdmin()) {
H A DMapBox.php76 if (Auth::isAdmin()) {
H A DColorsTheme.php91 if (Auth::isAdmin($user)) {
/webtrees/app/Cli/Commands/
H A DUserList.php74 Auth::isAdmin(user: $user) ? 'Yes' : 'No',

12