aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/shared/model/User.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/web/shared/model/User.java')
-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