From bf2fd6ac206f1f9617e50927b0b30292aff86337 Mon Sep 17 00:00:00 2001 From: wkhaksar <31837615+wkhaksar@users.noreply.github.com> Date: Tue, 21 Mar 2023 15:34:35 +0000 Subject: login-to-users-permission-changed-to-manager --- modern/src/settings/UsersPage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modern/src/settings') diff --git a/modern/src/settings/UsersPage.js b/modern/src/settings/UsersPage.js index 98674c9e..f571e3a8 100644 --- a/modern/src/settings/UsersPage.js +++ b/modern/src/settings/UsersPage.js @@ -14,7 +14,7 @@ import SettingsMenu from './components/SettingsMenu'; import CollectionFab from './components/CollectionFab'; import CollectionActions from './components/CollectionActions'; import TableShimmer from '../common/components/TableShimmer'; -import { useAdministrator } from '../common/util/permissions'; +import { useManager } from '../common/util/permissions'; import SearchHeader, { filterByKeyword } from './components/SearchHeader'; import { usePreference } from '../common/util/preferences'; @@ -30,7 +30,7 @@ const UsersPage = () => { const navigate = useNavigate(); const t = useTranslation(); - const admin = useAdministrator(); + const manager = useManager(); const hours12 = usePreference('twelveHourFormat'); @@ -104,7 +104,7 @@ const UsersPage = () => { editPath="/settings/user" endpoint="users" setTimestamp={setTimestamp} - customActions={admin ? [actionLogin, actionConnections] : [actionConnections]} + customActions={manager ? [actionLogin, actionConnections] : [actionConnections]} /> -- cgit v1.2.3