aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/StateController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r--web/app/view/StateController.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js
index f84caac2..08331867 100644
--- a/web/app/view/StateController.js
+++ b/web/app/view/StateController.js
@@ -55,6 +55,8 @@ Ext.define('Traccar.view.StateController', {
},
init: function () {
+ var visible = !Traccar.app.getUser().get('deviceReadonly') && !Traccar.app.getPreference('readonly', false);
+ this.lookupReference('aliasEditButton').setVisible(visible);
this.aliasesStore = Ext.getStore('AttributeAliases');
},