aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-02-04 20:21:11 +1300
committerGitHub <noreply@github.com>2018-02-04 20:21:11 +1300
commit368c49c20c06893459389847e781dc80af850bbc (patch)
tree40d0757237774216693773e8490afd76ccae3f98
parent8aed98ce2ae65b19da627e418e02f3627c70bd9d (diff)
parentba3ebd4f7207b036ed016a52a77272f0d3989382 (diff)
downloadtrackermap-web-368c49c20c06893459389847e781dc80af850bbc.tar.gz
trackermap-web-368c49c20c06893459389847e781dc80af850bbc.tar.bz2
trackermap-web-368c49c20c06893459389847e781dc80af850bbc.zip
Merge pull request #644 from parveenkumardeeva/master
Odometer permission to both Admin or Manager
-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..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.getVehicleFeaturesDisabled());
+ !Traccar.app.getUser().get('admin') && Traccar.app.getUser().get('userLimit') === 0 || Traccar.app.getVehicleFeaturesDisabled());
},
onGeofencesClick: function () {