diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-03-26 12:26:18 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-03-26 12:26:18 +1300 |
commit | 0de84ae45c6dbd1b22e764fef7ab394287e70d3c (patch) | |
tree | 5f5fa2d4cc84196c51df6602aed424466fe4034c /src/org/traccar/api/resource/DeviceResource.java | |
parent | 511a7adb8bb39d1523b2f366c2288b2d0cb8b9a9 (diff) | |
download | trackermap-server-0de84ae45c6dbd1b22e764fef7ab394287e70d3c.tar.gz trackermap-server-0de84ae45c6dbd1b22e764fef7ab394287e70d3c.tar.bz2 trackermap-server-0de84ae45c6dbd1b22e764fef7ab394287e70d3c.zip |
Update device permissions on group change
Diffstat (limited to 'src/org/traccar/api/resource/DeviceResource.java')
-rw-r--r-- | src/org/traccar/api/resource/DeviceResource.java | 1 |
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(); } |