aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/UserPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/settings/UserPage.js')
-rw-r--r--modern/src/settings/UserPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/settings/UserPage.js b/modern/src/settings/UserPage.js
index 65a18be1..b3608015 100644
--- a/modern/src/settings/UserPage.js
+++ b/modern/src/settings/UserPage.js
@@ -350,7 +350,7 @@ const UserPage = () => {
definitions={{ ...commonUserAttributes, ...userAttributes }}
focusAttribute={attribute}
/>
- {item.id === currentUser.id && (
+ {item.id === currentUser.id && !manager && (
<Accordion>
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
<Typography variant="subtitle1" color="error">
@@ -375,7 +375,7 @@ const UserPage = () => {
</AccordionDetails>
</Accordion>
)}
- {item.id && item.id !== currentUser.id && manager && (
+ {item.id && manager && (
<Accordion>
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
<Typography variant="subtitle1">