aboutsummaryrefslogtreecommitdiff
path: root/web/app/Application.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/Application.js')
-rw-r--r--web/app/Application.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/web/app/Application.js b/web/app/Application.js
index e17be1a15..62dedf22b 100644
--- a/web/app/Application.js
+++ b/web/app/Application.js
@@ -37,5 +37,14 @@ Ext.define('Traccar.Application', {
controllers: [
'Root'
- ]
+ ],
+
+ setUser: function(user) {
+ this.user = user;
+ },
+
+ getUser: function() {
+ return this.user;
+ }
+
});