Searched refs:PREF_TREE_ROLE (Results 1 – 12 of 12) sorted by relevance
/webtrees/tests/app/Services/ |
H A D | UserServiceTest.php | 161 … $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 D | Privacy.php | 58 … $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 D | Auth.php | 77 …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 D | AuthModeratorTest.php | 46 …$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 D | AuthMemberTest.php | 46 …$tree->method('getUserPreference')->with($user, UserInterface::PREF_TREE_ROLE)->willReturn(UserInt… 68 … $tree->method('getUserPreference')->with($user, UserInterface::PREF_TREE_ROLE)->willReturn('');
|
H A D | AuthEditorTest.php | 46 …$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 D | AuthManagerTest.php | 46 …$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 D | UserService.php | 207 ->where('user_gedcom_setting.setting_name', '=', UserInterface::PREF_TREE_ROLE) 226 ->where('user_gedcom_setting.setting_name', '=', UserInterface::PREF_TREE_ROLE)
|
H A D | TreeService.php | 112 … ->where('user_gedcom_setting.setting_name', '=', UserInterface::PREF_TREE_ROLE);
|
/webtrees/app/Contracts/ |
H A D | UserInterface.php | 46 public const PREF_TREE_ROLE = 'canedit'; define
|
/webtrees/resources/views/admin/ |
H A D | users-edit.phtml | 323 … <?= $role === $tree->getUserPreference($user, UserInterface::PREF_TREE_ROLE) ? 'selected' : '' ?>>
|
/webtrees/app/Http/RequestHandlers/ |
H A D | UserEditAction.php | 143 $tree->setUserPreference($edit_user, UserInterface::PREF_TREE_ROLE, $can_edit);
|