aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-03-26 12:26:18 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2017-03-26 12:26:18 +1300
commit0de84ae45c6dbd1b22e764fef7ab394287e70d3c (patch)
tree5f5fa2d4cc84196c51df6602aed424466fe4034c /src
parent511a7adb8bb39d1523b2f366c2288b2d0cb8b9a9 (diff)
downloadtrackermap-server-0de84ae45c6dbd1b22e764fef7ab394287e70d3c.tar.gz
trackermap-server-0de84ae45c6dbd1b22e764fef7ab394287e70d3c.tar.bz2
trackermap-server-0de84ae45c6dbd1b22e764fef7ab394287e70d3c.zip
Update device permissions on group change
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/api/resource/DeviceResource.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/api/resource/DeviceResource.java b/src/org/traccar/api/resource/DeviceResource.java
index e0c2335f9..bfd05aad5 100644
--- a/src/org/traccar/api/resource/DeviceResource.java
+++ b/src/org/traccar/api/resource/DeviceResource.java
@@ -80,6 +80,7 @@ public class DeviceResource extends BaseResource {
Context.getPermissionsManager().checkDeviceReadonly(getUserId());
Context.getPermissionsManager().checkDevice(getUserId(), entity.getId());
Context.getDeviceManager().updateDevice(entity);
+ Context.getPermissionsManager().refreshPermissions();
if (Context.getGeofenceManager() != null) {
Context.getGeofenceManager().refresh();
}