From 0a20a3ef96a216d8f3a69c048d7c5e6f90b4ddd8 Mon Sep 17 00:00:00 2001 From: parveenkumaryadav Date: Sat, 3 Feb 2018 18:26:19 +0530 Subject: Odometer permission to both Admin or Manager --- web/app/view/DeviceMenuController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/app/view/DeviceMenuController.js') 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 () { -- cgit v1.2.3