diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-18 16:51:46 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-18 16:51:46 -0700 |
commit | 4993f83ad1a5ad78a0b076503ab8c0b8f1bbf073 (patch) | |
tree | c5e4ce57cca3aad35e1869f21faa99b930871d51 /modern/src/common/components | |
parent | b88aa76538f8cebfa64d7f0d6b1cba8608432068 (diff) | |
download | trackermap-web-4993f83ad1a5ad78a0b076503ab8c0b8f1bbf073.tar.gz trackermap-web-4993f83ad1a5ad78a0b076503ab8c0b8f1bbf073.tar.bz2 trackermap-web-4993f83ad1a5ad78a0b076503ab8c0b8f1bbf073.zip |
Option to disable email change
Diffstat (limited to 'modern/src/common/components')
-rw-r--r-- | modern/src/common/components/BottomMenu.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/common/components/BottomMenu.js b/modern/src/common/components/BottomMenu.js index 37bdcf10..504e642a 100644 --- a/modern/src/common/components/BottomMenu.js +++ b/modern/src/common/components/BottomMenu.js @@ -13,7 +13,7 @@ import ExitToAppIcon from '@mui/icons-material/ExitToApp'; import { sessionActions } from '../../store'; import { useTranslation } from './LocalizationProvider'; -import { useReadonly } from '../util/permissions'; +import { useRestriction } from '../util/permissions'; const BottomMenu = () => { const navigate = useNavigate(); @@ -21,7 +21,7 @@ const BottomMenu = () => { const dispatch = useDispatch(); const t = useTranslation(); - const readonly = useReadonly(); + const readonly = useRestriction('readonly'); const userId = useSelector((state) => state.session.user.id); const socket = useSelector((state) => state.session.socket); |