From f879ded84778b261485ce388d2e4bd9686ea2a79 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 9 Aug 2013 20:03:29 +1200 Subject: Allow to revoke admin rights --- src/org/traccar/web/server/model/DataServiceImpl.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 { -- cgit v1.2.3