diff options
author | wkhaksar <31837615+wkhaksar@users.noreply.github.com> | 2023-03-21 15:34:35 +0000 |
---|---|---|
committer | wkhaksar <31837615+wkhaksar@users.noreply.github.com> | 2023-03-21 15:34:35 +0000 |
commit | bf2fd6ac206f1f9617e50927b0b30292aff86337 (patch) | |
tree | d6f280007ee037843bb6994d2d745665c9b65285 | |
parent | cb0f64ecd9bf1de543d6a30f65fdddb92b4d926a (diff) | |
download | trackermap-web-bf2fd6ac206f1f9617e50927b0b30292aff86337.tar.gz trackermap-web-bf2fd6ac206f1f9617e50927b0b30292aff86337.tar.bz2 trackermap-web-bf2fd6ac206f1f9617e50927b0b30292aff86337.zip |
login-to-users-permission-changed-to-manager
-rw-r--r-- | modern/src/settings/UsersPage.js | 6 |
1 files changed, 3 insertions, 3 deletions
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]} /> </TableCell> </TableRow> |