aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/StateController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-01-28 17:51:10 +1300
committerGitHub <noreply@github.com>2017-01-28 17:51:10 +1300
commitd1dd9f84e819d70154861ac2487f902da12885ed (patch)
tree01a8be83810df3722e86d5c7182e96c075d0a215 /web/app/view/StateController.js
parentb32387fe01dafc1e85509c8e5312831d9cd0aef2 (diff)
parentaec5f5b0f0b00492742919358a9aaa03e72e3a5b (diff)
downloadtrackermap-web-d1dd9f84e819d70154861ac2487f902da12885ed.tar.gz
trackermap-web-d1dd9f84e819d70154861ac2487f902da12885ed.tar.bz2
trackermap-web-d1dd9f84e819d70154861ac2487f902da12885ed.zip
Merge pull request #390 from Abyss777/permissions_polishing
Improve permissions
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');
},