diff options
author | Abyss777 <abyss@fox5.ru> | 2017-01-24 18:41:27 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-01-26 11:42:25 +0500 |
commit | 048065b76ac3528a8fa802367aa2750c22487f6c (patch) | |
tree | c84414b2421b906d970d2a22549249629700f025 /web/app/view/StateController.js | |
parent | 6171c7275a32c3ad9653aafaf673ab93254c8d1a (diff) | |
download | trackermap-web-048065b76ac3528a8fa802367aa2750c22487f6c.tar.gz trackermap-web-048065b76ac3528a8fa802367aa2750c22487f6c.tar.bz2 trackermap-web-048065b76ac3528a8fa802367aa2750c22487f6c.zip |
- Polish permissions
- Makeup imports
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r-- | web/app/view/StateController.js | 2 |
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'); }, |