From a6493ec4fa3a6da556f30e791f99198e03ef9e73 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 27 Feb 2013 21:46:50 +1300 Subject: Fix schema update from 2.0 version --- src/org/traccar/web/shared/model/User.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/org') 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 -- cgit v1.2.3