diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-29 09:54:48 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-29 09:54:48 +1200 |
commit | 4f875a6fb51aa1eb7aebc779d2b971f74a53e901 (patch) | |
tree | bd097caeea4d554b344d10d12b2531b8d1cc312b /src/org/traccar/api/resource/ServerResource.java | |
parent | b1e7bd492b9f6739936e533b4ab16d4825f1ce3c (diff) | |
parent | 6f89644fdcb3dbeb966cadbd810f9795922b8c4e (diff) | |
download | trackermap-server-4f875a6fb51aa1eb7aebc779d2b971f74a53e901.tar.gz trackermap-server-4f875a6fb51aa1eb7aebc779d2b971f74a53e901.tar.bz2 trackermap-server-4f875a6fb51aa1eb7aebc779d2b971f74a53e901.zip |
Merge pull request #2163 from Abyss777/overspeed_extension
OverspeedEventHandler enhancement to use attributes
Diffstat (limited to 'src/org/traccar/api/resource/ServerResource.java')
-rw-r--r-- | src/org/traccar/api/resource/ServerResource.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/api/resource/ServerResource.java b/src/org/traccar/api/resource/ServerResource.java index 9e42687ab..0ca0d62aa 100644 --- a/src/org/traccar/api/resource/ServerResource.java +++ b/src/org/traccar/api/resource/ServerResource.java @@ -37,14 +37,13 @@ public class ServerResource extends BaseResource { @PermitAll @GET public Server get() throws SQLException { - return Context.getDataManager().getServer(); + return Context.getPermissionsManager().getServer(); } @PUT public Response update(Server entity) throws SQLException { Context.getPermissionsManager().checkAdmin(getUserId()); - Context.getDataManager().updateServer(entity); - Context.getPermissionsManager().refresh(); + Context.getPermissionsManager().updateServer(entity); return Response.ok(entity).build(); } |