aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2023-03-31 06:46:57 -0700
committerGitHub <noreply@github.com>2023-03-31 06:46:57 -0700
commit0d1fedefc2673c8c0b7d78c102225f8660d336aa (patch)
treea0b8eb55094829ab88071cd7f8f519e517f71df8 /src
parent074ed6014cc7e243ce907052dc86444c0d23ccdd (diff)
parenta91696336f2ed1fa38e3a945e77857e8e8f98461 (diff)
downloadtrackermap-server-0d1fedefc2673c8c0b7d78c102225f8660d336aa.tar.gz
trackermap-server-0d1fedefc2673c8c0b7d78c102225f8660d336aa.tar.bz2
trackermap-server-0d1fedefc2673c8c0b7d78c102225f8660d336aa.zip
Merge pull request #5054 from wkhaksar/permissions-check-fix
A fix to permission check
Diffstat (limited to 'src')
-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());
}
}