aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource/ServerResource.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-12-19 20:41:09 +1300
committerGitHub <noreply@github.com>2017-12-19 20:41:09 +1300
commitf9b786398acee9f73e8591f7b0967be280524045 (patch)
tree10d544c07400ba89741a275bc1a26182689bad07 /src/org/traccar/api/resource/ServerResource.java
parent8162c8ea169a39d247747e1731fe713102e6f3cc (diff)
parent7858975ecb7d78106ad6dec829b838073d0db098 (diff)
downloadtrackermap-server-f9b786398acee9f73e8591f7b0967be280524045.tar.gz
trackermap-server-f9b786398acee9f73e8591f7b0967be280524045.tar.bz2
trackermap-server-f9b786398acee9f73e8591f7b0967be280524045.zip
Merge pull request #3685 from Abyss777/log_actions
Log user actions
Diffstat (limited to 'src/org/traccar/api/resource/ServerResource.java')
-rw-r--r--src/org/traccar/api/resource/ServerResource.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/api/resource/ServerResource.java b/src/org/traccar/api/resource/ServerResource.java
index c0914995b..61d3221f0 100644
--- a/src/org/traccar/api/resource/ServerResource.java
+++ b/src/org/traccar/api/resource/ServerResource.java
@@ -17,6 +17,7 @@ package org.traccar.api.resource;
import org.traccar.Context;
import org.traccar.api.BaseResource;
+import org.traccar.helper.LogAction;
import org.traccar.model.Server;
import javax.annotation.security.PermitAll;
@@ -45,6 +46,7 @@ public class ServerResource extends BaseResource {
public Response update(Server entity) throws SQLException {
Context.getPermissionsManager().checkAdmin(getUserId());
Context.getPermissionsManager().updateServer(entity);
+ LogAction.edit(getUserId(), entity);
return Response.ok(entity).build();
}