diff options
Diffstat (limited to 'src/org/traccar/web/shared/model/User.java')
-rw-r--r-- | src/org/traccar/web/shared/model/User.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/org/traccar/web/shared/model/User.java b/src/org/traccar/web/shared/model/User.java index 89bebc0..9a67c6d 100644 --- a/src/org/traccar/web/shared/model/User.java +++ b/src/org/traccar/web/shared/model/User.java @@ -40,6 +40,7 @@ public class User implements Serializable, Cloneable { id = user.id; login = user.login; password = user.password; + admin = user.admin; } @Id @@ -71,6 +72,16 @@ public class User implements Serializable, Cloneable { return password; } + private boolean admin; + + public void setAdmin(boolean admin) { + this.admin = admin; + } + + public boolean getAdmin() { + return admin; + } + @OneToMany(fetch = FetchType.EAGER) private List<Device> devices = new LinkedList<Device>(); |