From 0de84ae45c6dbd1b22e764fef7ab394287e70d3c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 26 Mar 2017 12:26:18 +1300 Subject: Update device permissions on group change --- src/org/traccar/api/resource/DeviceResource.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/org') 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(); } -- cgit v1.2.3