aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-19 16:22:33 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-19 16:22:33 -0700
commit4d37fc1ec3c4d3ba8e9421df08bb40979b19b5db (patch)
tree4645d78dad38a6696e32cc85f8fd90fa998a321f /src/main/java/org/traccar
parentb8ef27e67a687c27520f7a99640278f8607cdc0b (diff)
downloadtrackermap-server-4d37fc1ec3c4d3ba8e9421df08bb40979b19b5db.tar.gz
trackermap-server-4d37fc1ec3c4d3ba8e9421df08bb40979b19b5db.tar.bz2
trackermap-server-4d37fc1ec3c4d3ba8e9421df08bb40979b19b5db.zip
Fix get manager users
Diffstat (limited to 'src/main/java/org/traccar')
-rw-r--r--src/main/java/org/traccar/api/resource/UserResource.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/api/resource/UserResource.java b/src/main/java/org/traccar/api/resource/UserResource.java
index 1bb399437..dd71de4c6 100644
--- a/src/main/java/org/traccar/api/resource/UserResource.java
+++ b/src/main/java/org/traccar/api/resource/UserResource.java
@@ -54,8 +54,8 @@ public class UserResource extends BaseObjectResource<User> {
@GET
public Collection<User> get(@QueryParam("userId") long userId) throws StorageException {
- permissionsService.checkUser(getUserId(), userId);
if (userId > 0) {
+ permissionsService.checkUser(getUserId(), userId);
return storage.getObjects(baseClass, new Request(
new Columns.All(),
new Condition.Permission(User.class, userId, ManagedUser.class).excludeGroups()));