aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
authorparveenkumaryadav <parveenkumardeeva@gmail.com>2018-02-03 18:26:19 +0530
committerparveenkumaryadav <parveenkumardeeva@gmail.com>2018-02-03 18:26:19 +0530
commit0a20a3ef96a216d8f3a69c048d7c5e6f90b4ddd8 (patch)
treed558a5dd1887a76df97ecf88c3ed258ff42b2530 /web/app
parent8aed98ce2ae65b19da627e418e02f3627c70bd9d (diff)
downloadtrackermap-web-0a20a3ef96a216d8f3a69c048d7c5e6f90b4ddd8.tar.gz
trackermap-web-0a20a3ef96a216d8f3a69c048d7c5e6f90b4ddd8.tar.bz2
trackermap-web-0a20a3ef96a216d8f3a69c048d7c5e6f90b4ddd8.zip
Odometer permission to both Admin or Manager
Diffstat (limited to 'web/app')
-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 9e5ef14a..dcf17d7f 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.getVehicleFeaturesDisabled());
+ !(Traccar.app.getUser().get('admin') || Traccar.app.getUser().get('userLimit') !== 0) || Traccar.app.getVehicleFeaturesDisabled());
},
onGeofencesClick: function () {