diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-20 21:12:37 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-20 21:12:37 +1300 |
commit | 2bb63a0b1c82c42c0d13614c5a67521130165368 (patch) | |
tree | b3f161b35fb74e7996845fab420eec8a868017c8 /src/org/traccar/api/resource/ServerResource.java | |
parent | 5947767811b376a26c550661a7f5362d0d884f84 (diff) | |
download | trackermap-server-2bb63a0b1c82c42c0d13614c5a67521130165368.tar.gz trackermap-server-2bb63a0b1c82c42c0d13614c5a67521130165368.tar.bz2 trackermap-server-2bb63a0b1c82c42c0d13614c5a67521130165368.zip |
Check readonly and registration flags
Diffstat (limited to 'src/org/traccar/api/resource/ServerResource.java')
-rw-r--r-- | src/org/traccar/api/resource/ServerResource.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/api/resource/ServerResource.java b/src/org/traccar/api/resource/ServerResource.java index 54c04d21b..9e42687ab 100644 --- a/src/org/traccar/api/resource/ServerResource.java +++ b/src/org/traccar/api/resource/ServerResource.java @@ -44,6 +44,7 @@ public class ServerResource extends BaseResource { public Response update(Server entity) throws SQLException { Context.getPermissionsManager().checkAdmin(getUserId()); Context.getDataManager().updateServer(entity); + Context.getPermissionsManager().refresh(); return Response.ok(entity).build(); } |