diff options
author | Abyss777 <abyss@fox5.ru> | 2017-12-14 13:36:19 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-12-18 16:59:55 +0500 |
commit | 6028f7b37c4fc8bf1e771b33aee09e5f4276c5cf (patch) | |
tree | a347ad1207b2621843b64b5796a0e1670205b6f3 /src/org/traccar/api/resource/ServerResource.java | |
parent | 30c269bb3e7994eb94e3f53704b3c6ef6d3d124a (diff) | |
download | trackermap-server-6028f7b37c4fc8bf1e771b33aee09e5f4276c5cf.tar.gz trackermap-server-6028f7b37c4fc8bf1e771b33aee09e5f4276c5cf.tar.bz2 trackermap-server-6028f7b37c4fc8bf1e771b33aee09e5f4276c5cf.zip |
Log user actions
Diffstat (limited to 'src/org/traccar/api/resource/ServerResource.java')
-rw-r--r-- | src/org/traccar/api/resource/ServerResource.java | 2 |
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(); } |