diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2023-03-21 08:49:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 08:49:50 -0700 |
commit | 948bc01d3de990775a232859efff20de330219c0 (patch) | |
tree | d6f280007ee037843bb6994d2d745665c9b65285 /modern/src | |
parent | cb0f64ecd9bf1de543d6a30f65fdddb92b4d926a (diff) | |
parent | bf2fd6ac206f1f9617e50927b0b30292aff86337 (diff) | |
download | trackermap-web-948bc01d3de990775a232859efff20de330219c0.tar.gz trackermap-web-948bc01d3de990775a232859efff20de330219c0.tar.bz2 trackermap-web-948bc01d3de990775a232859efff20de330219c0.zip |
Merge pull request #1088 from wkhaksar/direct-login-managers-into-managed-users
Manager login as other users
Diffstat (limited to 'modern/src')
-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> |