diff options
author | wkhaksar <31837615+wkhaksar@users.noreply.github.com> | 2023-03-31 11:14:55 +0000 |
---|---|---|
committer | wkhaksar <31837615+wkhaksar@users.noreply.github.com> | 2023-03-31 11:14:55 +0000 |
commit | a91696336f2ed1fa38e3a945e77857e8e8f98461 (patch) | |
tree | a0b8eb55094829ab88071cd7f8f519e517f71df8 /src/main/java/org/traccar | |
parent | 074ed6014cc7e243ce907052dc86444c0d23ccdd (diff) | |
download | trackermap-server-a91696336f2ed1fa38e3a945e77857e8e8f98461.tar.gz trackermap-server-a91696336f2ed1fa38e3a945e77857e8e8f98461.tar.bz2 trackermap-server-a91696336f2ed1fa38e3a945e77857e8e8f98461.zip |
permission-check-fixed
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r-- | src/main/java/org/traccar/api/resource/PermissionsResource.java | 2 |
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()); } } |