aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-19 16:23:58 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-19 16:23:58 -0700
commit633f83998af749c7e38f0c8bd2b1587cb30520e2 (patch)
tree65cf8e2ce2b65395be36da3d547152f635a154e7 /modern/src/settings
parent5c5648dea3a80b0135b579706f5e1ff1dedb47dd (diff)
downloadtrackermap-web-633f83998af749c7e38f0c8bd2b1587cb30520e2.tar.gz
trackermap-web-633f83998af749c7e38f0c8bd2b1587cb30520e2.tar.bz2
trackermap-web-633f83998af749c7e38f0c8bd2b1587cb30520e2.zip
Fix default user values
Diffstat (limited to 'modern/src/settings')
-rw-r--r--modern/src/settings/UserPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/settings/UserPage.js b/modern/src/settings/UserPage.js
index 61fdd412..ba535a46 100644
--- a/modern/src/settings/UserPage.js
+++ b/modern/src/settings/UserPage.js
@@ -111,7 +111,7 @@ const UserPage = () => {
endpoint="users"
item={item}
setItem={setItem}
- defaultItem={{ deviceLimit: -1 }}
+ defaultItem={admin ? { deviceLimit: -1 } : {}}
validate={validate}
onItemSaved={onItemSaved}
menu={<SettingsMenu />}