aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-03 13:03:16 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-03 13:03:16 -0700
commitf06773eca33fd99bbdaf8163e6e6598bd75d25f7 (patch)
tree75a2341880735b5ea976fa846ae06f4f3f203923 /modern
parent63379920f4a447ff6bd2b30c76363f2692dc0dbe (diff)
downloadtrackermap-web-f06773eca33fd99bbdaf8163e6e6598bd75d25f7.tar.gz
trackermap-web-f06773eca33fd99bbdaf8163e6e6598bd75d25f7.tar.bz2
trackermap-web-f06773eca33fd99bbdaf8163e6e6598bd75d25f7.zip
All features enabled for admin (fix #694)
Diffstat (limited to 'modern')
-rw-r--r--modern/src/common/util/useFeatures.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/src/common/util/useFeatures.js b/modern/src/common/util/useFeatures.js
index f0a8299a..7a7ffcd2 100644
--- a/modern/src/common/util/useFeatures.js
+++ b/modern/src/common/util/useFeatures.js
@@ -2,6 +2,9 @@ import { useSelector } from 'react-redux';
const get = (server, user, key) => {
if (server && user) {
+ if (user.administrator) {
+ return false;
+ }
if (server.forceSettings) {
return server.attributes[key] || user.attributes[key] || false;
}