Home
last modified time | relevance | path

Searched refs:PREF_TREE_ROLE (Results 1 – 12 of 12) sorted by relevance

/webtrees/tests/app/Services/
H A DUserServiceTest.php161 … $tree->setUserPreference($user1, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_MANAGER);
162 … $tree->setUserPreference($user2, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_MODERATOR);
163 $tree->setUserPreference($user3, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_EDITOR);
164 $tree->setUserPreference($user4, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_MEMBER);
181 … $tree->setUserPreference($user1, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_MANAGER);
182 … $tree->setUserPreference($user2, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_MODERATOR);
183 $tree->setUserPreference($user3, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_EDITOR);
184 $tree->setUserPreference($user4, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_MEMBER);
/webtrees/tests/feature/
H A DPrivacy.php58 … $tree->setUserPreference($manager, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_MANAGER);
61 …$tree->setUserPreference($moderator, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_MODERATOR);
64 … $tree->setUserPreference($editor, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_EDITOR);
67 … $tree->setUserPreference($member, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_MEMBER);
70 … $tree->setUserPreference($visitor, UserInterface::PREF_TREE_ROLE, UserInterface::ROLE_VISITOR);
/webtrees/app/
H A DAuth.php77 …lf::isAdmin($user) || $tree->getUserPreference($user, UserInterface::PREF_TREE_ROLE) === UserInter…
94 … $tree->getUserPreference($user, UserInterface::PREF_TREE_ROLE) === UserInterface::ROLE_MODERATOR;
111 … $tree->getUserPreference($user, UserInterface::PREF_TREE_ROLE) === UserInterface::ROLE_EDITOR;
128 … $tree->getUserPreference($user, UserInterface::PREF_TREE_ROLE) === UserInterface::ROLE_MEMBER;
/webtrees/tests/app/Http/Middleware/
H A DAuthModeratorTest.php46 …$tree->method('getUserPreference')->with($user, UserInterface::PREF_TREE_ROLE)->willReturn(UserInt…
68 …$tree->method('getUserPreference')->with($user, UserInterface::PREF_TREE_ROLE)->willReturn(UserInt…
H A DAuthMemberTest.php46 …$tree->method('getUserPreference')->with($user, UserInterface::PREF_TREE_ROLE)->willReturn(UserInt…
68 … $tree->method('getUserPreference')->with($user, UserInterface::PREF_TREE_ROLE)->willReturn('');
H A DAuthEditorTest.php46 …$tree->method('getUserPreference')->with($user, UserInterface::PREF_TREE_ROLE)->willReturn(UserInt…
68 …$tree->method('getUserPreference')->with($user, UserInterface::PREF_TREE_ROLE)->willReturn(UserInt…
H A DAuthManagerTest.php46 …$tree->method('getUserPreference')->with($user, UserInterface::PREF_TREE_ROLE)->willReturn(UserInt…
68 …$tree->method('getUserPreference')->with($user, UserInterface::PREF_TREE_ROLE)->willReturn(UserInt…
/webtrees/app/Services/
H A DUserService.php207 ->where('user_gedcom_setting.setting_name', '=', UserInterface::PREF_TREE_ROLE)
226 ->where('user_gedcom_setting.setting_name', '=', UserInterface::PREF_TREE_ROLE)
H A DTreeService.php112 … ->where('user_gedcom_setting.setting_name', '=', UserInterface::PREF_TREE_ROLE);
/webtrees/app/Contracts/
H A DUserInterface.php46 public const PREF_TREE_ROLE = 'canedit'; define
/webtrees/resources/views/admin/
H A Dusers-edit.phtml323 … <?= $role === $tree->getUserPreference($user, UserInterface::PREF_TREE_ROLE) ? 'selected' : '' ?>>
/webtrees/app/Http/RequestHandlers/
H A DUserEditAction.php143 $tree->setUserPreference($edit_user, UserInterface::PREF_TREE_ROLE, $can_edit);