aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/StateController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-01-24 18:41:27 +0500
committerAbyss777 <abyss@fox5.ru>2017-01-26 11:42:25 +0500
commit048065b76ac3528a8fa802367aa2750c22487f6c (patch)
treec84414b2421b906d970d2a22549249629700f025 /web/app/view/StateController.js
parent6171c7275a32c3ad9653aafaf673ab93254c8d1a (diff)
downloadtrackermap-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.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');
},