diff options
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r-- | web/app/view/StateController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js index 44b01382..6363fc9c 100644 --- a/web/app/view/StateController.js +++ b/web/app/view/StateController.js @@ -53,7 +53,7 @@ Ext.define('Traccar.view.StateController', { init: function () { var i, hideAttributesPreference, attributesList; - if (Traccar.app.getUser().get('admin') || + if (Traccar.app.getUser().get('administrator') || !Traccar.app.getUser().get('deviceReadonly') && !Traccar.app.getPreference('readonly', false)) { this.lookupReference('computedAttributesButton').setDisabled( Traccar.app.getBooleanAttributePreference('ui.disableComputedAttributes')); |