aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-02-27 21:46:50 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-02-27 21:46:50 +1300
commita6493ec4fa3a6da556f30e791f99198e03ef9e73 (patch)
tree9cae5d0ce037290871e9303d9537a05d6908933e /src
parent3185c02ebfbe55c867aa514d9f47a867e18a1593 (diff)
downloadtrackermap-web-a6493ec4fa3a6da556f30e791f99198e03ef9e73.tar.gz
trackermap-web-a6493ec4fa3a6da556f30e791f99198e03ef9e73.tar.bz2
trackermap-web-a6493ec4fa3a6da556f30e791f99198e03ef9e73.zip
Fix schema update from 2.0 version
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/web/shared/model/User.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/org/traccar/web/shared/model/User.java b/src/org/traccar/web/shared/model/User.java
index 805c4a6c..ab11da4e 100644
--- a/src/org/traccar/web/shared/model/User.java
+++ b/src/org/traccar/web/shared/model/User.java
@@ -76,14 +76,16 @@ public class User implements Serializable, Cloneable {
return password;
}
- private boolean admin;
+ // TODO temporary nullable to migrate from old database
+ private Boolean admin;
public void setAdmin(boolean admin) {
this.admin = admin;
}
public boolean getAdmin() {
- return admin;
+ // TODO temporary nullable to migrate from old database
+ return (admin == null) ? false : admin;
}
@GwtTransient