diff options
author | Abyss777 <abyss@fox5.ru> | 2017-07-23 08:32:55 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-07-23 08:32:55 +0500 |
commit | d2a2ce5d05572caadf13627d3e6c3767ad68688f (patch) | |
tree | 5969cadd519b02e345af90a6ff664a0da0daba8d /src/org/traccar/api/resource | |
parent | f92b5cd97a5d2159a890fb4817238f4c1bbb2a12 (diff) | |
download | traccar-server-d2a2ce5d05572caadf13627d3e6c3767ad68688f.tar.gz traccar-server-d2a2ce5d05572caadf13627d3e6c3767ad68688f.tar.bz2 traccar-server-d2a2ce5d05572caadf13627d3e6c3767ad68688f.zip |
Use Permission object instead of Map
Diffstat (limited to 'src/org/traccar/api/resource')
-rw-r--r-- | src/org/traccar/api/resource/PermissionsResource.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/api/resource/PermissionsResource.java b/src/org/traccar/api/resource/PermissionsResource.java index 88fd9d092..9b9f65ad1 100644 --- a/src/org/traccar/api/resource/PermissionsResource.java +++ b/src/org/traccar/api/resource/PermissionsResource.java @@ -61,7 +61,7 @@ public class PermissionsResource extends BaseResource { checkPermission(permission, true); Context.getDataManager().linkObject(permission.getOwnerClass(), permission.getOwnerId(), permission.getPropertyClass(), permission.getPropertyId(), true); - Context.getPermissionsManager().refreshPermissions(entity); + Context.getPermissionsManager().refreshPermissions(permission); return Response.noContent().build(); } @@ -72,7 +72,7 @@ public class PermissionsResource extends BaseResource { checkPermission(permission, false); Context.getDataManager().linkObject(permission.getOwnerClass(), permission.getOwnerId(), permission.getPropertyClass(), permission.getPropertyId(), false); - Context.getPermissionsManager().refreshPermissions(entity); + Context.getPermissionsManager().refreshPermissions(permission); return Response.noContent().build(); } |