aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/user
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/user')
-rw-r--r--web/app/view/user/UserDialogController.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/user/UserDialogController.js b/web/app/view/user/UserDialogController.js
index cd37f70cf..dd3109d37 100644
--- a/web/app/view/user/UserDialogController.js
+++ b/web/app/view/user/UserDialogController.js
@@ -19,7 +19,7 @@ Ext.define('Traccar.view.user.UserDialogController', {
alias: 'controller.userDialog',
init: function() {
- if (Traccar.getApplication().getUser().get('admin')) {
+ if (Traccar.app.getUser().get('admin')) {
this.lookupReference('adminField').setDisabled(false);
}
},
@@ -28,7 +28,7 @@ Ext.define('Traccar.view.user.UserDialogController', {
var dialog = button.up('window').down('form');
dialog.updateRecord();
var record = dialog.getRecord();
- if (record === Traccar.getApplication().getUser()) {
+ if (record === Traccar.app.getUser()) {
record.save();
} else {
var store = Ext.getStore('Users');