From 01991bcc64cddd23005210d87594080fe834f64b Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 7 Feb 2017 15:26:44 +0500 Subject: Hide command button for readonly users --- web/app/view/DevicesController.js | 1 + 1 file changed, 1 insertion(+) (limited to 'web/app/view') diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js index cd858341..62853919 100644 --- a/web/app/view/DevicesController.js +++ b/web/app/view/DevicesController.js @@ -58,6 +58,7 @@ Ext.define('Traccar.view.DevicesController', { this.lookupReference('toolbarAddButton').setVisible(!readonly && !deviceReadonly); this.lookupReference('toolbarEditButton').setVisible(!readonly && !deviceReadonly); this.lookupReference('toolbarRemoveButton').setVisible(!readonly && !deviceReadonly); + this.lookupReference('deviceCommandButton').setVisible(!readonly && !deviceReadonly); this.lookupReference('toolbarGeofencesButton').setVisible(!readonly); }, -- cgit v1.2.3