aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/api')
-rw-r--r--src/main/java/org/traccar/api/ExtendedObjectResource.java2
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());
}
}