aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorparveenkumaryadav <parveenkumardeeva@gmail.com>2018-02-04 12:43:00 +0530
committerparveenkumaryadav <parveenkumardeeva@gmail.com>2018-02-04 12:43:00 +0530
commitba3ebd4f7207b036ed016a52a77272f0d3989382 (patch)
tree40d0757237774216693773e8490afd76ccae3f98 /web/app/view
parent0a20a3ef96a216d8f3a69c048d7c5e6f90b4ddd8 (diff)
downloadtrackermap-web-ba3ebd4f7207b036ed016a52a77272f0d3989382.tar.gz
trackermap-web-ba3ebd4f7207b036ed016a52a77272f0d3989382.tar.bz2
trackermap-web-ba3ebd4f7207b036ed016a52a77272f0d3989382.zip
removed extra brackets
Diffstat (limited to 'web/app/view')
-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 dcf17d7f..6416314a 100644
--- a/web/app/view/DeviceMenuController.js
+++ b/web/app/view/DeviceMenuController.js
@@ -36,7 +36,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('admin') && Traccar.app.getUser().get('userLimit') === 0 || Traccar.app.getVehicleFeaturesDisabled());
},
onGeofencesClick: function () {