aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/BaseObjectResource.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-09-13 09:05:21 +0500
committerAbyss777 <abyss@fox5.ru>2017-09-13 09:05:21 +0500
commit7b3a3ca4592688f0946076628aa86241a41b1aa8 (patch)
treeaf41bb7391d62d57323ecd3c3d6b476cbf14d974 /src/org/traccar/api/BaseObjectResource.java
parent925806fe70e10e47bcc12eb8bcc4fe21a9ece220 (diff)
downloadtrackermap-server-7b3a3ca4592688f0946076628aa86241a41b1aa8.tar.gz
trackermap-server-7b3a3ca4592688f0946076628aa86241a41b1aa8.tar.bz2
trackermap-server-7b3a3ca4592688f0946076628aa86241a41b1aa8.zip
- Rename functions "isXxx" to "getUserXxx"
- Rename function to "getSupportedCommands" - Some cleanup
Diffstat (limited to 'src/org/traccar/api/BaseObjectResource.java')
-rw-r--r--src/org/traccar/api/BaseObjectResource.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/api/BaseObjectResource.java b/src/org/traccar/api/BaseObjectResource.java
index 4315832b5..f0f31a154 100644
--- a/src/org/traccar/api/BaseObjectResource.java
+++ b/src/org/traccar/api/BaseObjectResource.java
@@ -52,7 +52,7 @@ public abstract class BaseObjectResource<T extends BaseModel> extends BaseResour
protected final Set<Long> getSimpleManagerItems(BaseObjectManager<T> manager, boolean all, long userId) {
Set<Long> result = null;
if (all) {
- if (Context.getPermissionsManager().isAdmin(getUserId())) {
+ if (Context.getPermissionsManager().getUserAdmin(getUserId())) {
result = manager.getAllItems();
} else {
Context.getPermissionsManager().checkManager(getUserId());