aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/settings/UserPage.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/settings/UserPage.js b/modern/src/settings/UserPage.js
index 392339d0..85f4ae34 100644
--- a/modern/src/settings/UserPage.js
+++ b/modern/src/settings/UserPage.js
@@ -58,6 +58,7 @@ const UserPage = () => {
const fixedEmail = useRestriction('fixedEmail');
const currentUser = useSelector((state) => state.session.user);
+ const registrationEnabled = useSelector((state) => state.session.server.registration);
const commonUserAttributes = useCommonUserAttributes(t);
const userAttributes = useUserAttributes(t);
@@ -351,7 +352,7 @@ const UserPage = () => {
definitions={{ ...commonUserAttributes, ...userAttributes }}
focusAttribute={attribute}
/>
- {item.id === currentUser.id && !manager && (
+ {registrationEnabled && item.id === currentUser.id && !manager && (
<Accordion>
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
<Typography variant="subtitle1" color="error">