diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-27 17:41:16 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-27 17:41:16 -0700 |
commit | 950a35723b8ad3e9383c55d8b84812d012da3085 (patch) | |
tree | 737c02b0fca3abefe690f4dc153f1241fa5a5e73 /src/main/java/org/traccar/api/ExtendedObjectResource.java | |
parent | 8ed7d6cd19f221c40e9994c0469009ff9c0e46b1 (diff) | |
download | trackermap-server-950a35723b8ad3e9383c55d8b84812d012da3085.tar.gz trackermap-server-950a35723b8ad3e9383c55d8b84812d012da3085.tar.bz2 trackermap-server-950a35723b8ad3e9383c55d8b84812d012da3085.zip |
Fix wrong user permissions (fix #4853)
Diffstat (limited to 'src/main/java/org/traccar/api/ExtendedObjectResource.java')
-rw-r--r-- | src/main/java/org/traccar/api/ExtendedObjectResource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/api/ExtendedObjectResource.java b/src/main/java/org/traccar/api/ExtendedObjectResource.java index e49f67bb9..41ed3e9d9 100644 --- a/src/main/java/org/traccar/api/ExtendedObjectResource.java +++ b/src/main/java/org/traccar/api/ExtendedObjectResource.java @@ -52,7 +52,7 @@ public class ExtendedObjectResource<T extends BaseModel> extends BaseObjectResou conditions.add(new Condition.Permission(User.class, getUserId(), baseClass)); } else { permissionsService.checkUser(getUserId(), userId); - conditions.add(new Condition.Permission(User.class, getUserId(), baseClass).excludeGroups()); + conditions.add(new Condition.Permission(User.class, userId, baseClass).excludeGroups()); } } |