aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-23 08:32:55 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-23 08:32:55 +0500
commitd2a2ce5d05572caadf13627d3e6c3767ad68688f (patch)
tree5969cadd519b02e345af90a6ff664a0da0daba8d /src/org/traccar/api
parentf92b5cd97a5d2159a890fb4817238f4c1bbb2a12 (diff)
downloadtrackermap-server-d2a2ce5d05572caadf13627d3e6c3767ad68688f.tar.gz
trackermap-server-d2a2ce5d05572caadf13627d3e6c3767ad68688f.tar.bz2
trackermap-server-d2a2ce5d05572caadf13627d3e6c3767ad68688f.zip
Use Permission object instead of Map
Diffstat (limited to 'src/org/traccar/api')
-rw-r--r--src/org/traccar/api/resource/PermissionsResource.java4
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();
}