diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-09-13 22:15:49 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-13 22:15:49 +1200 |
commit | 8a45a056b7e0814526904e915c3886b29ba2833a (patch) | |
tree | dc821e2134f4ae2c9881ce8de006a29b33da289f /src/org/traccar/api/resource/DeviceResource.java | |
parent | e05f0b83a911c522123a5a2cd14d6c16bd2de027 (diff) | |
parent | 7530522cbca477cb822cb494ffe12480e5237934 (diff) | |
download | trackermap-server-8a45a056b7e0814526904e915c3886b29ba2833a.tar.gz trackermap-server-8a45a056b7e0814526904e915c3886b29ba2833a.tar.bz2 trackermap-server-8a45a056b7e0814526904e915c3886b29ba2833a.zip |
Merge pull request #3522 from Abyss777/saved_commands
Implement Saved Commands
Diffstat (limited to 'src/org/traccar/api/resource/DeviceResource.java')
-rw-r--r-- | src/org/traccar/api/resource/DeviceResource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/api/resource/DeviceResource.java b/src/org/traccar/api/resource/DeviceResource.java index 1c2c653a4..1fae92dc7 100644 --- a/src/org/traccar/api/resource/DeviceResource.java +++ b/src/org/traccar/api/resource/DeviceResource.java @@ -53,7 +53,7 @@ public class DeviceResource extends BaseObjectResource<Device> { DeviceManager deviceManager = Context.getDeviceManager(); Set<Long> result = null; if (all) { - if (Context.getPermissionsManager().isAdmin(getUserId())) { + if (Context.getPermissionsManager().getUserAdmin(getUserId())) { result = deviceManager.getAllItems(); } else { Context.getPermissionsManager().checkManager(getUserId()); |