aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/SettingsMenuController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-08 16:01:12 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-08 16:01:12 +1300
commit58d7f195375a8d32f5260da7d4cea437ad564223 (patch)
tree787254e771859e57022fab32d4062ffd78afb3b3 /web/app/view/SettingsMenuController.js
parent06e0f5fd8f32e8f0fbcbce6efd2fcc759b718689 (diff)
downloadtrackermap-web-58d7f195375a8d32f5260da7d4cea437ad564223.tar.gz
trackermap-web-58d7f195375a8d32f5260da7d4cea437ad564223.tar.bz2
trackermap-web-58d7f195375a8d32f5260da7d4cea437ad564223.zip
Implement user readonly flag
Diffstat (limited to 'web/app/view/SettingsMenuController.js')
-rw-r--r--web/app/view/SettingsMenuController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/SettingsMenuController.js b/web/app/view/SettingsMenuController.js
index 7a2b718b..eee0097b 100644
--- a/web/app/view/SettingsMenuController.js
+++ b/web/app/view/SettingsMenuController.js
@@ -34,7 +34,7 @@ Ext.define('Traccar.view.SettingsMenuController', {
init: function () {
var admin, readonly;
admin = Traccar.app.getUser().get('admin');
- readonly = Traccar.app.getServer().get('readonly');
+ readonly = Traccar.app.getPreference('readonly', false);
if (admin) {
this.lookupReference('settingsServerButton').setHidden(false);
this.lookupReference('settingsUsersButton').setHidden(false);