aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-21 14:22:22 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-21 18:31:07 -0700
commit29653ad898b6ec29c5d2675fe188aeac53ec3c19 (patch)
tree1cc3498dc98d5c102705c080513ff16670552813
parent7825be90d88e3965c4a41a4e9011ae29b7670be9 (diff)
downloadtrackermap-web-29653ad898b6ec29c5d2675fe188aeac53ec3c19.tar.gz
trackermap-web-29653ad898b6ec29c5d2675fe188aeac53ec3c19.tar.bz2
trackermap-web-29653ad898b6ec29c5d2675fe188aeac53ec3c19.zip
For managers show connections
-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">