aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/DeviceMenuController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-04-27 17:06:57 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-04-27 17:06:57 +1200
commit7e1ed7fee9ec411df0d198d10dc1a7f8e0e6eaf9 (patch)
tree8bb2e2bcf0f16223b3feb031dc537507f3f4ae3f /web/app/view/DeviceMenuController.js
parentbc4913524b5202b0244fe636d6d59b269fef2e1d (diff)
downloadtrackermap-web-7e1ed7fee9ec411df0d198d10dc1a7f8e0e6eaf9.tar.gz
trackermap-web-7e1ed7fee9ec411df0d198d10dc1a7f8e0e6eaf9.tar.bz2
trackermap-web-7e1ed7fee9ec411df0d198d10dc1a7f8e0e6eaf9.zip
Rename admin to administrator
Diffstat (limited to 'web/app/view/DeviceMenuController.js')
-rw-r--r--web/app/view/DeviceMenuController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/DeviceMenuController.js b/web/app/view/DeviceMenuController.js
index e50b0e0c..f191756c 100644
--- a/web/app/view/DeviceMenuController.js
+++ b/web/app/view/DeviceMenuController.js
@@ -37,7 +37,7 @@ Ext.define('Traccar.view.DeviceMenuController', {
Traccar.app.getBooleanAttributePreference('ui.disableComputedAttributes'));
this.lookupReference('menuCommandsButton').setHidden(Traccar.app.getPreference('limitCommands', false));
this.lookupReference('menuDeviceDistanceButton').setHidden(
- !Traccar.app.getUser().get('admin') && Traccar.app.getUser().get('userLimit') === 0 || Traccar.app.getVehicleFeaturesDisabled());
+ !Traccar.app.getUser().get('administrator') && Traccar.app.getUser().get('userLimit') === 0 || Traccar.app.getVehicleFeaturesDisabled());
this.lookupReference('menuMaintenancesButton').setHidden(
Traccar.app.getVehicleFeaturesDisabled() || Traccar.app.getBooleanAttributePreference('ui.disableMaintenances'));
},