aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorwkhaksar <31837615+wkhaksar@users.noreply.github.com>2023-03-31 11:14:55 +0000
committerwkhaksar <31837615+wkhaksar@users.noreply.github.com>2023-03-31 11:14:55 +0000
commita91696336f2ed1fa38e3a945e77857e8e8f98461 (patch)
treea0b8eb55094829ab88071cd7f8f519e517f71df8 /src/main
parent074ed6014cc7e243ce907052dc86444c0d23ccdd (diff)
downloadtrackermap-server-a91696336f2ed1fa38e3a945e77857e8e8f98461.tar.gz
trackermap-server-a91696336f2ed1fa38e3a945e77857e8e8f98461.tar.bz2
trackermap-server-a91696336f2ed1fa38e3a945e77857e8e8f98461.zip
permission-check-fixed
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/api/resource/PermissionsResource.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/api/resource/PermissionsResource.java b/src/main/java/org/traccar/api/resource/PermissionsResource.java
index d35cb98bb..f02c5d426 100644
--- a/src/main/java/org/traccar/api/resource/PermissionsResource.java
+++ b/src/main/java/org/traccar/api/resource/PermissionsResource.java
@@ -48,7 +48,7 @@ public class PermissionsResource extends BaseResource {
private void checkPermission(Permission permission) throws StorageException {
if (permissionsService.notAdmin(getUserId())) {
permissionsService.checkPermission(permission.getOwnerClass(), getUserId(), permission.getOwnerId());
- permissionsService.checkPermission(permission.getOwnerClass(), getUserId(), permission.getOwnerId());
+ permissionsService.checkPermission(permission.getPropertyClass(), getUserId(), permission.getPropertyId());
}
}