aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/components/SettingsMenu.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/settings/components/SettingsMenu.js')
-rw-r--r--modern/src/settings/components/SettingsMenu.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/settings/components/SettingsMenu.js b/modern/src/settings/components/SettingsMenu.js
index 51d9b8fc..7a1bf1b3 100644
--- a/modern/src/settings/components/SettingsMenu.js
+++ b/modern/src/settings/components/SettingsMenu.js
@@ -15,7 +15,7 @@ import PublishIcon from '@mui/icons-material/Publish';
import { Link, useLocation } from 'react-router-dom';
import { useSelector } from 'react-redux';
import { useTranslation } from '../../common/components/LocalizationProvider';
-import { useAdministrator, useManager, useReadonly } from '../../common/util/permissions';
+import { useAdministrator, useManager, useRestriction } from '../../common/util/permissions';
import useFeatures from '../../common/util/useFeatures';
const MenuItem = ({
@@ -31,7 +31,7 @@ const SettingsMenu = () => {
const t = useTranslation();
const location = useLocation();
- const readonly = useReadonly();
+ const readonly = useRestriction('readonly');
const admin = useAdministrator();
const manager = useManager();
const userId = useSelector((state) => state.session.user.id);