diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2023-03-31 06:46:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 06:46:57 -0700 |
commit | 0d1fedefc2673c8c0b7d78c102225f8660d336aa (patch) | |
tree | a0b8eb55094829ab88071cd7f8f519e517f71df8 | |
parent | 074ed6014cc7e243ce907052dc86444c0d23ccdd (diff) | |
parent | a91696336f2ed1fa38e3a945e77857e8e8f98461 (diff) | |
download | trackermap-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
-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()); } } |