diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-09 20:03:29 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-08-09 20:03:29 +1200 |
commit | f879ded84778b261485ce388d2e4bd9686ea2a79 (patch) | |
tree | 88fee1d41bc66d4a86cc9459a2b5da0610733f53 /src | |
parent | 7a806c44cb9f3af53ecae6e4a2e6e89841ffef7f (diff) | |
download | trackermap-web-f879ded84778b261485ce388d2e4bd9686ea2a79.tar.gz trackermap-web-f879ded84778b261485ce388d2e4bd9686ea2a79.tar.bz2 trackermap-web-f879ded84778b261485ce388d2e4bd9686ea2a79.zip |
Allow to revoke admin rights
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/web/server/model/DataServiceImpl.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/web/server/model/DataServiceImpl.java b/src/org/traccar/web/server/model/DataServiceImpl.java index 2a148e25..2d678b09 100644 --- a/src/org/traccar/web/server/model/DataServiceImpl.java +++ b/src/org/traccar/web/server/model/DataServiceImpl.java @@ -208,6 +208,7 @@ public class DataServiceImpl extends RemoteServiceServlet implements DataService currentUser.setLogin(user.getLogin()); currentUser.setPassword(user.getPassword()); currentUser.setUserSettings(user.getUserSettings()); + currentUser.setAdmin(user.getAdmin()); entityManager.merge(currentUser); user = currentUser; } else { |