aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-08-09 20:03:29 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2013-08-09 20:03:29 +1200
commitf879ded84778b261485ce388d2e4bd9686ea2a79 (patch)
tree88fee1d41bc66d4a86cc9459a2b5da0610733f53 /src
parent7a806c44cb9f3af53ecae6e4a2e6e89841ffef7f (diff)
downloadtrackermap-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.java1
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 {