/webtrees/tests/feature/ |
H A D | Privacy.php | 76 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 D | UserRepository.php | 71 … 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 D | trees.phtml | 115 <?php if (count($all_trees) > 1 && Auth::isAdmin()) : ?> 125 <?php if (count($all_trees) > 1 && Auth::isAdmin()) : ?>
|
H A D | trees-preferences.phtml | 67 <?php if (Auth::isAdmin()) : ?> 234 <?php if (Auth::isAdmin()) : ?>
|
H A D | users-table-options.phtml | 43 <?php if (!Auth::isAdmin($user)) : ?>
|
H A D | gedcom-export-options.phtml | 103 <?php if (Auth::isAdmin()) : ?>
|
/webtrees/app/ |
H A D | Auth.php | 58 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 D | individual-page-title.phtml | 24 <?php if (Auth::isAdmin()) : ?>
|
H A D | family-page-menu.phtml | 86 … <?php if (Auth::isAdmin() || $record->tree()->getPreference('SHOW_GEDCOM_RECORD') === '1') : ?>
|
H A D | individual-page-menu.phtml | 126 … <?php if (Auth::isAdmin() || $record->tree()->getPreference('SHOW_GEDCOM_RECORD') === '1') : ?>
|
/webtrees/app/Http/RequestHandlers/ |
H A D | DeleteUser.php | 63 if (Auth::isAdmin($user)) {
|
H A D | ModuleAction.php | 77 if (str_contains($action, 'Admin') && !Auth::isAdmin($user)) {
|
H A D | HomePage.php | 81 if (Auth::isAdmin($user)) {
|
H A D | EditRecordPage.php | 63 $can_edit_raw = Auth::isAdmin() || $tree->getPreference('SHOW_GEDCOM_RECORD') === '1';
|
H A D | EditFactPage.php | 73 $can_edit_raw = Auth::isAdmin() || $tree->getPreference('SHOW_GEDCOM_RECORD') === '1';
|
H A D | HelpText.php | 270 'is_admin' => Auth::isAdmin(),
|
H A D | LoginAction.php | 77 if (Auth::isAdmin() && $this->upgrade_service->isUpgradeAvailable()) {
|
/webtrees/app/Http/Middleware/ |
H A D | AuthAdministrator.php | 52 if (Auth::isAdmin($user)) {
|
/webtrees/app/Services/ |
H A D | LeafletJsService.php | 63 if (Auth::isAdmin()) {
|
/webtrees/app/Module/ |
H A D | HereMaps.php | 76 if (Auth::isAdmin()) {
|
H A D | BingMaps.php | 117 if (Auth::isAdmin()) {
|
H A D | GoogleMaps.php | 117 if (Auth::isAdmin()) {
|
H A D | MapBox.php | 76 if (Auth::isAdmin()) {
|
H A D | ColorsTheme.php | 91 if (Auth::isAdmin($user)) {
|
/webtrees/app/Cli/Commands/ |
H A D | UserList.php | 74 Auth::isAdmin(user: $user) ? 'Yes' : 'No',
|