diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 16:01:12 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 16:01:12 +1300 |
commit | 58d7f195375a8d32f5260da7d4cea437ad564223 (patch) | |
tree | 787254e771859e57022fab32d4062ffd78afb3b3 /web/app/view/DevicesController.js | |
parent | 06e0f5fd8f32e8f0fbcbce6efd2fcc759b718689 (diff) | |
download | trackermap-web-58d7f195375a8d32f5260da7d4cea437ad564223.tar.gz trackermap-web-58d7f195375a8d32f5260da7d4cea437ad564223.tar.bz2 trackermap-web-58d7f195375a8d32f5260da7d4cea437ad564223.zip |
Implement user readonly flag
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r-- | web/app/view/DevicesController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js index 89da779f..02463241 100644 --- a/web/app/view/DevicesController.js +++ b/web/app/view/DevicesController.js @@ -45,7 +45,7 @@ Ext.define('Traccar.view.DevicesController', { }, init: function () { - var readonly = Traccar.app.getServer().get('readonly') && !Traccar.app.getUser().get('admin'); + var readonly = Traccar.app.getPreference('readonly', false) && !Traccar.app.getUser().get('admin'); this.lookupReference('toolbarAddButton').setVisible(!readonly); this.lookupReference('toolbarEditButton').setVisible(!readonly); this.lookupReference('toolbarRemoveButton').setVisible(!readonly); |